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

السؤال

نشر (معدل)

لو سمحتو انا عايزة حل باسرع وقت ..عندي خطا ومش عارفة ليش مع انو البرنامج منزلاه جديد اخر تحديث مع مكتباته..شو المشكلة مش عارفة؟!

 

هي المشكلة:

21 issues were found when checking AAR metadata:

  1.  Dependency 'androidx.navigation:navigation-ui:2.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

  2.  Dependency 'androidx.appcompat:appcompat:1.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

  3.  Dependency 'androidx.navigation:navigation-fragment:2.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

  4.  Dependency 'androidx.lifecycle:lifecycle-livedata-ktx:2.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

  5.  Dependency 'androidx.fragment:fragment-ktx:1.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

  6.  Dependency 'androidx.navigation:navigation-runtime:2.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

  7.  Dependency 'androidx.navigation:navigation-common:2.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

  8.  Dependency 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

  9.  Dependency 'androidx.fragment:fragment:1.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

 10.  Dependency 'androidx.appcompat:appcompat-resources:1.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

 11.  Dependency 'androidx.emoji2:emoji2-views-helper:1.0.0' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

 12.  Dependency 'androidx.emoji2:emoji2:1.0.0' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

 13.  Dependency 'androidx.slidingpanelayout:slidingpanelayout:1.2.0' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

 14.  Dependency 'androidx.window:window:1.0.0' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

 15.  Dependency 'androidx.core:core:1.7.0' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

 16.  Dependency 'androidx.lifecycle:lifecycle-viewmodel:2.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

 17.  Dependency 'androidx.lifecycle:lifecycle-process:2.4.0' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

 18.  Dependency 'androidx.lifecycle:lifecycle-livedata:2.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

 19.  Dependency 'androidx.lifecycle:lifecycle-livedata-core-ktx:2.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

 20.  Dependency 'androidx.lifecycle:lifecycle-livedata-core:2.4.1' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).

 21.  Dependency 'androidx.lifecycle:lifecycle-runtime:2.4.0' requires libraries and applications that
      depend on it to compile against version 31 or later of the
      Android APIs.

      :app is currently compiled against android-R.

      Recommended action: Update this project to use a newer compileSdkVersion
      of at least 31, for example 33.

      Note that updating a library or application's compileSdkVersion (which
      allows newer APIs to be used) can be done separately from updating
      targetSdkVersion (which opts the app in to new runtime behavior) and
      minSdkVersion (which determines which devices the app can be installed
      on).
 

1.png

تم التعديل في بواسطة Sam Ahw
توضيح السؤال

Recommended Posts

  • 0
نشر

المشكلة ليست بإصدار برنامج android studio بل بتوافقية المكتبات والاعتماديات المستخدمة في المشروع مع إصدار SDK المعرّف ضمن مشروعك، يمكنك إجراء التعديلات التالية على الملف build.gradle الموجود ضمن المسار android/app/build.gradle:

android {
compileSdkVersion 31 // تعديل الإصدار هنا إلى 31

sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
    applicationId "com.example.blah_blah"
    minSdkVersion 16
    targetSdkVersion 31  //تعديل الإصدار إلى 31
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
}

buildTypes {
    release {
        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        signingConfig signingConfigs.debug
    }
}

وأيضاً في ملف app/build.gradle:

buildscript {
ext.kotlin_version = '1.6.10' //تعديل الإصدار
repositories {
    google()
    jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:4.1.0'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

في حال ظهرت المزيد من المشاكل في المستقبل أرجو منك كتابة المزيد من التفاصيل حول مشروعك وضمن أي إطار مبني Flutter, Kotlin, Android. يمكنك اتباع الإرشادات التالية لطرح الأسئلة: كيف تحصل على إجابة لسؤالك؟

  • 0
نشر

تم

بتاريخ 16 ساعات قال Sam Ahw:

المشكلة ليست بإصدار برنامج android studio بل بتوافقية المكتبات والاعتماديات المستخدمة في المشروع مع إصدار SDK المعرّف ضمن مشروعك، يمكنك إجراء التعديلات التالية على الملف build.gradle الموجود ضمن المسار android/app/build.gradle:


android {
compileSdkVersion 31 // تعديل الإصدار هنا إلى 31

sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
    applicationId "com.example.blah_blah"
    minSdkVersion 16
    targetSdkVersion 31  //تعديل الإصدار إلى 31
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
}

buildTypes {
    release {
        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        signingConfig signingConfigs.debug
    }
}

وأيضاً في ملف app/build.gradle:


buildscript {
ext.kotlin_version = '1.6.10' //تعديل الإصدار
repositories {
    google()
    jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:4.1.0'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

في حال ظهرت المزيد من المشاكل في المستقبل أرجو منك كتابة المزيد من التفاصيل حول مشروعك وضمن أي إطار مبني Flutter, Kotlin, Android. يمكنك اتباع الإرشادات التالية لطرح الأسئلة: كيف تحصل على إجابة لسؤالك؟

 

تمام حليت المشاكل بس طلعتلي مشكلة مش عارفة شو بده؟؟؟؟؟؟

المشكلة :Cause: invalid date string: Unparseable date: "bbaa`i``ba`eGMT+00:00"

 

2.png

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...