- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在flutter项目中添加了geolocator程序包,每当我运行时,都会收到有关androidx兼容性和
任务':app:preDebugBuild'的执行失败。
Android dependency 'androidx.versionedparcelable:versionedparcelable' has different version for the compile (1.0.0) and runtime (1.1.0) classpath. You should manually set the same version via DependencyResolution i added this in android/gradle.properties
android.useAndroidX=true
android.enableJetifier=true
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "27.1.1"
}
if (details.requested.group == 'androidx.core'
&& !details.requested.name.contains('androidx') ) {
details.useVersion "1.0.1"
}
}
}
}
最佳答案
有时候,我能够找到答案。我只需要更新 flutter
和buildscript下的android / build.gradle中的followinng
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'androidx.core' &&
!details.requested.name.contains('androidx')) {
details.useVersion "1.0.1"
}
}
}
}
android.useAndroidX=true
android.enableJetifier=true
关于android-studio - 如何将flutter项目迁移到androidx:任务 ':app:preDebugBuild'执行失败。 > Android依赖项'androidx.versionedparcelable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60351429/
我是 Android Studio 的新手,目前在构建项目时遇到了一些错误。对我 friend 的单位来说,这对我来说没有问题,但在我构建项目时。它说: org.gradle.api.Unchecke
我正在尝试为 Android 组装调试构建类型的库。 我在我的 gradle 脚本中设置了这段代码: task setDebug(dependsOn: 'preDebugBuild') { p
我收集了我在 Android 中每天构建的 Gradle 日志,我想知道这是什么意思 Executing transform IdentityTransform -> ExtractAarTransf
Android dependency 'com.android.support:support-media-compat' has different version for the compile
我正在我的项目上设置 firebase,当我添加 inappmessaging-display lib 时,会出现此错误: Dependency resolved to an incompatible
org.gradle.api.UncheckedIOException:在最新检查期间无法捕获任务“:app:preDebugBuild”属性“runtimeManifests”的输入文件的快照。 我
我开始使用 flutter 开发应用程序,当我从 GitHub 克隆项目时遇到此错误: 出了什么问题? Execution failed for task ':app:preDebugBuild'.
好的,所以我正在为 android 开发一个 ionic 应用程序,这周我更新了插件、cordova 和 ionic,它不会再构建 apk。我知道问题出在 firebase 插件上,但我不知道如何解决
我正在尝试使用以下命令在android模拟器上运行我的react-native应用程序: npm start react-native link react-native run-android 它失
我正在尝试构建一个 Ionic 4 android 应用程序,它显示了一个 preDebugBuild 错误。它说了一些关于 play-services-measurement-base 被不同版本的
我是一名优秀的程序员,十分优秀!