اذهب إلى المحتوى

Marwa Ali4

الأعضاء
  • المساهمات

    35
  • تاريخ الانضمام

  • تاريخ آخر زيارة

أجوبة بواسطة Marwa Ali4

  1. package com.example.myapplication3;
    
    import androidx.appcompat.app.AppCompatActivity;
    
    import android.accessibilityservice.GestureDescription;
    
    import android.content.DialogInterface;
    
    import android.app.AlertDialog;
    
    import android.content.Intent;
    
    import android.os.Bundle;
    
    import android.view.View;
    
    import android.widget.Button;
    
    public class MainActivity3 extends AppCompatActivity {
    
    Button btndata;
    
    @Override
    
    protected void onCreate(Bundle savedInstanceState) {
    
    super.onCreate(savedInstanceState);
    
    setContentView(R.layout.activity_main3);
    
    btndata = (Button) findViewById(R.id.btndata);
    
    } public void onclick(View v)
    
    { Intent intentbutton = new Intent(this, MainActivity4.class);
    
    creatAlertDialog()
    
    ; AlertDielog.Builder = new AlertDielog.Builder(this)
    
    ; GestureDescription.Builder.setTitle("هل ترغب في عرض معلوماتك للزبون وعرض معلوماته لك");
    
    builder.setPositiveButton ("نعم",
    
    new DialogInterface.onClickListener() {
    
    @Override
    
    public void onclick(DialogInterface dialog, int which)
    
    { startActivity(intentbutton);
    
    } } })
    
    ; builder.setNegativeButton {"لا"
    
    , new DialogInterface.onClickListener()
    
    {
    
    @Override
    
    public void onclick(DialogInterface dialog, int which)
    
    { } } } ;
    
    builder.show();
    
    }

     

    • أعجبني 2
  2. بتاريخ 1 دقيقة مضت قال Wael Aljamal:

    أرجو التوجه للملف gradle.properties في مجلد المشروع الرئيسي ثم تعديل أو إضافة السطر التالي:

    
    android.enableAapt2 = true

    في حال لم تحل المشكلة يمكنك تجريب تحديث  gradle plugin

    جربت اضافة السطر المذكور وتحديت  Gradle plugin الي آخر اصدار7.0.4 لكن الخطاء موجود 

  3. بتاريخ 16 ساعات قال Wael Aljamal:

    هذه المشكلة بسبب عدم استخدام نفس إصدار نظام الحماية في كل من التطبيق و المخدم، لذلك نتأكد من دعم التطبيق ليرسل التشفير بالخوارزمية التي يقبلها المخدم فنكتب الأمر قبل تعليمات إنشاء الاتصال:

    
    System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");

    لأنه ربما المخدم يدعم TLS v1.1 وليس 1 ..

    المقصود تعليمات الاتصال العامة (الخاصة بالويندوز ) ام ماذا ؟ 

  4. بتاريخ 1 ساعة قال Wael Aljamal:

    المشكلة في التخزين المؤقت ل maven أرجو التوجه للمسار التالي:

    
    In Windows - C:\Users\<username>\Windows
    
                          ^^^^^^^^^^   اسم المستخدم لديك

    ثم حذف المجلد

    
    .m2/repository/org/apache/maven/archetypes
                                  ^^^^^^^^^^^^^^

    . فيه 

    لا يوجد عندي ملف بهذا العنوان . الإدخال الخاص بالmaven غير موجود بالملفات الأندرويد غير مستخدم 

  5. بتاريخ On ١٥‏/١‏/٢٠٢٢ at 15:03 قال Wael Aljamal:

    هذا هوا buildTypes الموجود عندي فقط لا يوجد عندي الأمر الذي ذكرته أعلاه 

     

     buildTypes {

    release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } 

  6. بتاريخ On ١٥‏/١‏/٢٠٢٢ at 15:03 قال Wael Aljamal:

    حاولي حذف هذه الجزئية مؤقتا:

     

    حذفت هدي الجزئية اختفى الخطاء وظهر عندي تحذيرات حوالي 64 تحذير ... هل هذا الحذف لا يحدت عطل في المشروع ....لأني اعتقد أنها مهمة لتشغيل الاندرويد

    بشأن هذا انا قمت بأجزاء بخصوص الجافا عند تحديت الاندرويد . قمت بتغيير اصدار الجافا الي آخر اصدار   

  7. غير مستخدمه هدي الشيفرة في المشروع

    هدا هوا بناء المشروع

    android {
    
    compileSdkVersion 31
    
    defaultConfig { applicationId "com.icanstudioz.taxicustomer"
    
    minSdkVersion 16
    
    targetSdkVersion 31
    
    versionCode 11
    
    versionName "2.1"
    
    multiDexEnabled true
    
    testInstrumentationRunner "android.support.home_fragment.runner.AndroidJUnitRunn
    
    compileOptions {
    
    sourceCompatibility JavaVersion.VERSION_1_8
    
    targetCompatibility JavaVersion.VERSION_1_8 }
    
    javaCompileOptions {
    
    annotationProcessorOptions
    
     includeCompileClasspath true
    
    } } }
    
    dexOptions {
    
    preDexLibraries = false }
    
    buildTypes {
    
    release {
    
    minifyEnabled false
    
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } lintOptions {
    
    checkReleaseBuilds false
    
    abortOnError false } }
    
    dependencies {
    
    implementation ('com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.16.0') { transitive = true } .
    
    implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.16.0' implementation 'com.google.firebase:firebase-auth:21.0.1'

     

  8. @Wael Aljamal حلت المشكلة لدي بالتعديل على ملف المشروع الاعلى لاحظت ادخال الغرادل غير مطابق وقمت بتبديل البروكسي كما دكرت مسبقا . ولكن ظهر لدي خطاء جديد هدا هوا  

    No signature of method: build_9r4qz9atboksvdhi4foqls7ni.android() is applicable for argument types: (build_9r4qz9atboksvdhi4foqls7ni$_run_closure1) values: [build_9r4qz9atboksvdhi4foqls7ni$_run_closure1@633ed6d8]

     

  9. السلام عليكم ورحمة الله وبركاته معذرة أخوتي لدي سؤال بخصوص متغيرات البيئة في اندرويد استديوا قمت بأدخال متغيرات البيئة وعند فتح الاندرويد يظهر لي هذا الخطاء ما العمل

    com.android.prefs.Android locationsException :ANDROID -SDK-HOMEis set to the root of your SDK  :C:/user /public /Android/Android....exc

    • أعجبني 1
  10. @Hassan Hedrجربت اضافه خاصية allowInsecureProtocol دون جدوى ..كيفاقوم بتبديل البرتوكولات اليhttps

    systemProp.http.proxyHost= 

    systemProp.https.proxyHost= 

    systemProp.https.proxyPort=80 

    systemProp.http.proxyPort=80 

    org.gradle.jvmargs=-Xmx1024m 

    android.useAndroidX=true

    هدي اوامر وحدة الخصائص الموجدة لدي

  11. السلام عليكم ورحمة الله وبركاته  ممكن حل تظهر عندي هدي المشكلة بعد تحديت الاندرويد

    Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. Using insecure protocols with repositories, without explicit opt-in, is unsupp
    apply plugin: 'com.android.application'
    
    android { compileSdkVersion 31
    
    defaultConfig { applicationId "com.icanstudioz.taxicustomer"
    
    minSdkVersion 16
    
    targetSdkVersion 31
    
    versionCode 11
    
    versionName "2.1"
    
    multiDexEnabled true
    
    "testInstrumentationRunner "android.support.home_fragment.runner.AndroidJUnitRunner
    
    compileOptions{ sourceCompatibility JavaVersion.VERSION_1_8
    
    targetCompatibility JavaVersion.VERSION_1_8 }
    
    javaCompileOptions
    
    { annotationProcessorOptions { includeCompileClasspath true } }
    
    dependencies
    
    { implementation ('com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.16.0')
    
    { transitive = true } implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.16.0'
    
    implementation 'com.google.firebase:firebase-auth:21.0.1'
    
    implementation 'com.google.firebase:firebase-messaging:23.0.0'
    
    implementation 'com.paypal.sdk:paypal-android-sdk:2.15.3'
    
    implementation 'com.github.TheBrownArrow:PermissionManager:1.0.0'
    
    implementation 'de.hdodenhof:circleimageview:3.0.0'
    
    implementation 'gun0912.ted:tedbottompicker:1.2.6'
    
    implementation 'com.akexorcist:googledirectionlibrary:1.0.5'
    
    
    
    implementation 'com.loopj.android:android-async-http:1.4.9'
    
    implementation 'com.github.bumptech.glide:glide:4.7.1'
    
    implementation 'com.google.android.gms:play-services-maps:18.0.1'
    
    implementation 'com.google.android.gms:play-services-location:19.0.0'
    
    //implementation 'com.google.android.gms:play-services-places:16.0.0'
    
    implementation 'com.google.android.libraries.places:places:2.5.0'
    
    implementation 'com.google.firebase:firebase-database:20.0.3'
    
    implementation 'com.google.code.gson:gson:2.8.6'
    
    implementation 'com.android.support:appcompat-v7:+'
    
    implementation 'androidx.multidex:multidex:2.0.1'
    
    implementation 'androidx.cardview:cardview:1.0.0'
    
    implementation 'androidx.appcompat:appcompat:1.4.0'
    
    implementation 'com.google.android.material:material:1.4.0'
    
    implementation "androidx.navigation:navigation-fragment:2.4.0-rc01"
    
    implementation "androidx.navigation:navigation-ui:2.4.0-rc01"
    
    androidTestImplementation "androidx.navigation:navigation-testing:2.4.0-rc01"
    
    apply plugin: 'com.google.gms.google-services'
    
    

     

    • أعجبني 2
  12. @Mohamd Imran

    تم ترقيه المكتبه من دون مشاكل ولكن عملت ترقية للاندرويد استديوا بالكامل الي اندرويدandroid artic fox المشروع لايوجد بيه مشاكل ولكن جميع الواجهات تظهر بالطريقة ادناه مع العلم تم ترقية كل المشروع حتى الغرادل

    يظهر فقط هدا التحدير

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
    Use '--warning-mode all' to show the individual deprecation warnings.
    See https://docs.gradle.org/6.8-rc-2/userguide/command_line_interface.html#sec:command_line_warnings
     

    23.jpg

  13. السلام عليكم ورحمة الله وبركاته...كيف حالكم جميعا
     كيف ممكن ارقي السطور المكتبات الي androidx ,في حال اردت الاستمرار على نفس المكتبه ما العمل 
     

    implementation 'com.android.support:multidex:1.0.3'
    
    implementation 'com.android.support:cardview-v7:28.0.0'
    
    implementation 'com.android.support:appcompat-v7:28.0.0'
    
    implementation 'com.android.support:design:28.0.0'

     

    • أعجبني 1
  14. حدت معي مشكلة لأ أعلم ماسببها ملف migrate to androidx غير موجود هدا تظهر رسالة (no usages found in the project) عند فتح الملف مع العلم ان الملف كان موجود عندي . عملت تنظيف المشروع ولكن يأتي بنتيجة 

  15.  

    اقتباس

     

    
    android.enableJetifier=true
    android.useAndroidX=true

     

     مكتبة androidx مفعلة عندي . حاولت حدف امر واحد من التعريفات ولكن الخطاء ظاهر عندي لم يتغير 

×
×
  • أضف...