Android 颤振生成失败,D8:程序类型已存在
我正在开发一个颤振应用程序 我发现了一个样本颤振项目,所以它。 但是这个项目。。。生成失败,出现以下日志消息Android 颤振生成失败,D8:程序类型已存在,android,gradle,dart,flutter,Android,Gradle,Dart,Flutter,我正在开发一个颤振应用程序 我发现了一个样本颤振项目,所以它。 但是这个项目。。。生成失败,出现以下日志消息 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:preDebugBuild'. > Android dependency 'androidx.core:core' has different version for the compile (1.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'androidx.core:core' has different version for the compile (1.0.0) and runtime (1.0.1) 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility for more information on the problem and how to fix it.
*******************************************************************************************
Finished with error: Gradle task assembleDebug failed with exit code 1
这个项目并不特别。
对于android部分,没有其他修改。
这与“新颤振项目”完全相同
我试过一些东西:
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
D8: Program type already present: android.support.v4.app.INotificationSideChannel
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: android.support.v4.app.INotificationSideChannel
我不知道我该怎么办
这让我很累。。。
我只想编码…我通过以下链接解决此问题: 有两个迁移指南
这不容易…我通过以下链接解决此问题: 有两个迁移指南
这不容易…我试过这两行代码
颤振清洁
然后
flatterrun
我尝试了这两行代码
颤振清洁
然后
颤振跑
试试看试试看