当我运行“ ionic cordova run android”或构建android时,我遇到以下问题,请问可以帮助我吗?
当我运行“ cordova run android”时,出现此错误,请帮助我。
7秒内失败 3个可执行的任务:3个已执行 / Users / mac / Desktop / Projets / Magazine Anissati / anissatiapp / platforms / android / gradlew:命令失败, 退出代码1错误输出: 失败:构建失败,并出现异常。
* What went wrong: Failed to capture fingerprint of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date
检查。
在项目“应用”中,已解析的Google Play服务库依赖项依赖于另一个版本(例如“ [11.0。 4]”,但尚未解决该版本。该库显示的行为将是未知的。
Dependency failing: com.google.android.gms:play-services-ads-lite:11.0.4 ->
com.google.android.gms:play-services-basemen t @ [11.0.4],但play-services-basement版本为17.0.0。
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art ifact with the issue. -- Project 'app' depends onto com.google.android.gms:play-services-gass@11.0.4 -- Project 'app' depends onto com.google.firebase:firebase-core@+ -- Project 'app' depends onto com.google.android.gms:play-services-tasks@17.0.0 -- Project 'app' depends onto com.google.android.gms:play-services-measurement-impl@17.0.0 -- Project 'app' depends onto com.google.android.gms:play-services-base@17.0.0 -- Project 'app' depends onto com.google.android.gms:play-services-safetynet@11.0.4 -- Project 'app' depends onto com.google.android.gms:play-services-measurement-sdk-api@17.0.0 -- Project 'app' depends onto com.google.android.gms:play-services-measurement-base@17.0.0 -- Project 'app' depends onto com.google.android.gms:play-services-measurement-api@17.0.0 -- Project 'app' depends onto com.google.firebase:firebase-measurement-connector@18.0.0 -- Project 'app' depends onto com.google.android.gms:play-services-ads-identifier@17.0.0 -- Project 'app' depends onto com.google.android.gms:play-services-clearcut@17.0.0 -- Project 'app' depends onto com.google.firebase:firebase-core@17.0.1 -- Project 'app' depends onto com.google.android.gms:play-services-ads-lite@11.0.4 -- Project 'app' depends onto com.google.android.gms:play-services-basement@17.0.0 -- Project 'app' depends onto com.google.firebase:firebase-iid@19.0.1 -- Project 'app' depends onto com.google.android.gms:play-services-measurement@17.0.0 -- Project 'app' depends onto com.google.firebase:firebase-auth@18.1.0 -- Project 'app' depends onto com.google.firebase:firebase-auth@+ -- Project 'app' depends onto com.google.firebase:firebase-abt@18.0.0 -- Project 'app' depends onto com.google.firebase:firebase-perf@+ -- Project 'app' depends onto com.google.android.gms:play-services-tagmanager-api@17.0.0 -- Project 'app' depends onto com.google.firebase:firebase-auth-interop@18.0.0 -- Project 'app' depends onto com.google.firebase:firebase-iid-interop@17.0.0 -- Project 'app' depends onto com.google.firebase:firebase-analytics@17.0.0 -- Project 'app' depends onto com.google.firebase:firebase-messaging@+ -- Project 'app' depends onto com.google.android.gms:play-services-tagmanager@+ -- Project 'app' depends onto com.google.firebase:firebase-config@18.0.0 -- Project 'app' depends onto com.google.android.gms:play-services-base@11.0.4 -- Project 'app' depends onto com.google.android.gms:play-services-ads@11.0.4 -- Project 'app' depends onto com.google.firebase:firebase-config@+ -- Project 'app' depends onto com.google.android.gms:play-services-measurement-sdk@17.0.0 -- Project 'app' depends onto com.google.android.gms:play-services-stats@17.0.0 -- Project 'app' depends onto com.google.firebase:firebase-common@18.0.0 -- Project 'app' depends onto com.google.android.gms:play-services-analytics-impl@17.0.0 -- Project 'app' depends onto com.google.firebase:firebase-perf@18.0.1 -- Project 'app' depends onto com.google.android.gms:play-services-tagmanager@17.0.0 -- Project 'app' depends onto com.google.firebase:firebase-messaging@19.0.1 -- Project 'app' depends onto com.google.android.gms:play-services-phenotype@17.0.0 For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b uild.gradle file.
答案 0 :(得分:0)
我认为这是一个常见的构建错误。
您需要一个特殊的插件来覆盖播放服务的版本,以便每个人都要求使用相同的版本。
此插件将提供该功能:
要使用它,只需在控制台中输入以下内容:
ionic cordova plugin add cordova-play-services-version-adapter