【发布时间】:2018-11-07 18:20:50
【问题描述】:
几天以来,我的应用程序 IONIC 拒绝在 ANDROID 上编译(我将代码复制到 MAC 上,奇迹般地,编译在 iOS 上没有问题......已经是这样了,但我需要编译ANDROID ...)。
自上次编译以来我没有更改程序的任何一行,所以我想知道这不是来自更新。
当我这样做时:
ionic codrova run android
或
ionic cordova build android --prod --release
我遇到了这个错误:
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find firebase-iid-interop.aar (com.google.firebase:firebase-iid-interop:16.0.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/firebase/firebase-iid-interop/16.0.0/firebase-iid-interop-16.0.0.aar
> Could not find firebase-measurement-connector.aar (com.google.firebase:firebase-measurement-connector:16.0.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/firebase/firebase-measurement-connector/16.0.0/firebase-measurement-connector-16.0.0.aar
【问题讨论】:
-
你有解决这个问题的办法吗?
-
如果您仍然遇到类似的错误,请手动清除您的 gradle 缓存。 (删除.gradle/caches目录)
标签: ionic-framework build compilation