Unable to apply changes on device: xyz. Error is: Failed to build plugin nativescript-google-maps-sdk :
Error: Command gradlew.bat failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':releaseCompileClasspath'.
> Could not find common.jar (android.arch.core:common:1.0.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/core/common/1.0.0/common-1.0.0.jar
* Try:
Run with --stack trace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org尝试下面的解决方案来解决这个问题,但是没有成功。
build.gradle”}nativescript-google-maps-sdk插件发布于 2022-05-29 04:25:24
我想我到达的时间有点晚了,但是我遇到了一个类似的问题,那就是nativescript-google和Command gradlew.bat在退出代码1中失败了。
我有一个类似的输出,但没有找到任何解决方案,直到我运行ns构建android。使用该命令,我得到了以下输出:
语义分析中的一般错误:不支持的类文件主要版本62本地文本
在网上搜索了很多之后,我发现我不得不降低我的JDK版本的级别。我把它从JDK 18降到了JDK 8,它解决了我的问题。希望这对提出类似问题的人是有用的。
https://stackoverflow.com/questions/50580723
复制相似问题