You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What went wrong:
Execution failed for task ':app:preReleaseBuild'.
Android dependency 'androidx.versionedparcelable:versionedparcelable' has different version for the compile (1.0.0-rc01) and runtime (1.0.0) classpath. You should manually set the same version via DependencyResolution
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.
BUILD FAILED in 1s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin audioplayers...
Running Gradle task 'assembleAarRelease'...
Built build/app/outputs/repo.
Building plugin camera...
Running Gradle task 'assembleAarRelease'...
Built build/app/outputs/repo.
Building plugin connectivity...
Running Gradle task 'assembleAarRelease'...
Task :mergeReleaseConsumerProguardFiles UP-TO-DATE
Task :mergeReleaseShaders
Task :compileReleaseShaders UP-TO-DATE
Task :generateReleaseAssets UP-TO-DATE
Task :packageReleaseAssets
Task :packageReleaseRenderscript NO-SOURCE
Task :processReleaseJavaRes NO-SOURCE
Task :compileReleaseNdk NO-SOURCE
Task :mergeReleaseJniLibFolders
Task :transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
Task :transformNativeLibsWithStripDebugSymbolForRelease UP-TO-DATE
Task :transformNativeLibsWithSyncJniLibsForRelease UP-TO-DATE
18 actionable tasks: 7 executed, 11 up-to-date
/Users/luckysmg/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.5/android/src/main/java/io/flutter/plugins/connectivity/ConnectivityPlugin.java:31: 错误: 无法访问LifecycleOwner
*********************************************************
setupChannels(binding.getFlutterEngine().getDartExecutor(), binding.getApplicationContext());
WARNING: This version of connectivity will break your Android build if it or its dependencies aren't compatible with AndroidX.
^
找不到android.arch.lifecycle.LifecycleOwner的类文件
注: /Users/luckysmg/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.5/android/src/main/java/io/flutter/plugins/connectivity/ConnectivityBroadcastReceiver.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
1 个错误
FAILURE: Build failed with an exception.
What went wrong:
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
Execution failed for task ':compileReleaseJavaWithJavac'.
Compilation failed; see the compiler error output for details.
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.
FAILURE: Build failed with an exception.
Execution failed for task ':app:preReleaseBuild'.
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 1s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin audioplayers...
Running Gradle task 'assembleAarRelease'...
Built build/app/outputs/repo.
Building plugin camera...
Running Gradle task 'assembleAarRelease'...
Built build/app/outputs/repo.
Building plugin connectivity...
Running Gradle task 'assembleAarRelease'...
FAILURE: Build failed with an exception.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
Execution failed for task ':compileReleaseJavaWithJavac'.
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 1s
Finished with error: The plugin connectivity could not be built due to the issue above.
The text was updated successfully, but these errors were encountered: