Open hlj2722 opened 4 years ago
把极光统计插件拷贝出来
然后修改极光统计插件里的build.gradle文件的compileSdkVersion 和 minSdkVersion
让插件里的compileSdkVersion 和 minSdkVersion 值,与自己项目的compileSdkVersion和minSdkVersion值相对应。。
我是这么解决的问题。
这个插件坑了我好几天,不用极光的flutter插件就没事了。。。
同样的问题 把极光插件里的build.gradle文件的compileSdkVersion和minSdkVersion和自己项目的值对应就解决了 坑了挺久的
运行环境 D:\flutter_app\tencent_ad_demo>flutter doctor -v [√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.18363.535], locale zh-CN) • Flutter version 1.12.13+hotfix.5 at D:\flutter • Framework revision 27321ebbad (13 days ago), 2019-12-10 18:15:01 -0800 • Engine revision 2994f7e1e6 • Dart version 2.7.0
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2) • Android SDK at C:\Users\HLJ\AppData\Local\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.0.2 • Java binary at: D:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03) X Android license status unknown. Try re-installing or updating your Android SDK Manager. See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[√] Android Studio (version 3.5) • Android Studio at D:\Program Files\Android\Android Studio • Flutter plugin version 42.0.1 • Dart plugin version 191.8593 • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] Connected device (1 available) • Redmi Note 3 • SS45SSBI99999999 • android-arm64 • Android 5.0.2 (API 21)
! Doctor found issues in 1 category.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':janalytics:verifyReleaseResources'.
C:\Users\HLJ.gradle\caches\transforms-2\files-2.1\0a271e99b6771ad4a84318244d532fb7\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 39s Running Gradle task 'assembleRelease'... Running Gradle task 'assembleRelease'... Done 40.0s The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility. ✏️ Creating
android\settings_aar.gradle
... 27ms √android\settings_aar.gradle
created successfully. Building plugin battery... Running Gradle task 'assembleAarRelease'... Running Gradle task 'assembleAarRelease'... Done 12.6s Starting a Gradle Daemon (subsequent builds will be faster)FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'battery'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 12s
The plugin battery could not be built due to the issue above.