POS 百怡富零售系統
百怡富科技有限公司


 
標題: Execution failed for task ':app:checkDebugAarMetadata'.
pericles
管理員
Rank: 9Rank: 9Rank: 9



UID 1
精華 0
積分 0
帖子 225
閱讀權限 200
註冊 2006-12-2
狀態 離線
發表於 2022-1-22 18:16  資料 文集 短消息 
Execution failed for task ':app:checkDebugAarMetadata'.

> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > One or more issues found when checking AAR metadata values:

     The minCompileSdk (31) specified in a
     dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
     is greater than this module's compileSdkVersion (android-29).
     Dependency: androidx.window:window-java:1.0.0-beta04.
     AAR metadata file: C:\Users\85252\.gradle\caches\transforms-3\41a83d0cf61e3d2ab42ea706b65148ab\transformed\jetified-window-java-1.0.0-beta04\META-INF\com\android\build\gradle\aar-metadata.properties.

     The minCompileSdk (31) specified in a
     dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
     is greater than this module's compileSdkVersion (android-29).
     Dependency: androidx.window:window:1.0.0-beta04.
     AAR metadata file: C:\Users\85252\.gradle\caches\transforms-3\bb9a53f8c4dc071c681fa071739dc70b\transformed\jetified-window-1.0.0-beta04\META-INF\com\android\build\gradle\aar-metadata.properties.


Solution:-

Open  android > app > build.gradle file.

Change compileSdkVersion from 29 to 31.
Change targetSdkVersion from 29 to 31.
now run again.
頂部
pericles
管理員
Rank: 9Rank: 9Rank: 9



UID 1
精華 0
積分 0
帖子 225
閱讀權限 200
註冊 2006-12-2
狀態 離線
發表於 2022-1-22 18:31  資料 文集 短消息 
Execution failed for task ':app:processDebugMainManifest'.

> Manifest merger failed : android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/gu ... ty-element#exported for details.

Solution:-

You need to specify android:exported="false" or android:exported="true"
android > app > scr > main > AndroidManifest.xml

<activity
          android:name=".MainActivity"
          android:exported="true"
          android:theme="@style/Theme.MyApplication.NoActionBar">
          <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
          </intent-filter>
    </activity>

> Remark:   check when to use true/false for 'android:exported' value
   https://developer.android.com/gu ... ty-element#exported
頂部
pericles
管理員
Rank: 9Rank: 9Rank: 9



UID 1
精華 0
積分 0
帖子 225
閱讀權限 200
註冊 2006-12-2
狀態 離線
發表於 2022-1-24 10:26  資料 文集 短消息 
Your project requires a newer version of the Kotlin Gradle plugin.

Your project requires a newer version of the Kotlin Gradle plugin.                       │
│ Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then │
│ update C:\Users\85252\StudioProjects\w_bnb_202201\android\build.gradle:                      │
│ ext.kotlin_version = '<latest-version>'


Solution:
e.g. 打開  build.gradle 文件, 把後面的版本數字更改為最新的版本  ext.kotlin_version = '1.6.10'
頂部
pericles
管理員
Rank: 9Rank: 9Rank: 9



UID 1
精華 0
積分 0
帖子 225
閱讀權限 200
註冊 2006-12-2
狀態 離線
發表於 2022-1-24 16:33  資料 文集 短消息 
Warning : Your Flutter ... older version of the Android

Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It is being deprecated in favor of Android embedding v2. Follow the
steps at

https://flutter.dev/go/android-project-migration

to migrate your project. You may also pass the --ignore-deprecation flag to
ignore this check and continue with the deprecated v1 embedding. However,
the v1 Android embedding will be removed in future versions of Flutter.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The detected reason was:

  C:\Users\85252\StudioProjects\Covid19-Tracker-App\android\app\src\main\AndroidManifest.xml uses `android:name="io.flutter.app.FutterApplication"`
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Build failed due to use of deprecated Android v1 embedding.

Solution:
Ref:   https://github.com/flutter/flutt ... 12-Android-projects

1.  Open android/app/src/main/AndroidManifest.xml
2.  Replace the reference to FlutterApplication in the application tag with ${applicationName}

Replace  android:name="io.flutter.app.FlutterApplication"   by android:name="${applicationName}"
頂部
 


當前時區 GMT+8, 現在時間是 2022-5-22 21:36

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.017655 second(s), 8 queries

清除 Cookies - 聯繫我們 - 百怡富科技有限公司 - Archiver - WAP