【发布时间】:2021-05-07 15:01:01
【问题描述】:
在构建一个简单的 NativeScript 应用程序时,我在运行此命令时遇到了错误:
ns build android --release --key-store-path --key-store-password --key-store-alias --key-store-alias-password --aab
错误是:
Updating runtime package.json with configuration values...
Project successfully prepared (android)
Building project...
Gradle build...
FAILURE: Build failed with an exception.
* Where:
Settings file 'W:\XXX\app\platforms\android\settings.gradle'
* What went wrong:
Could not compile settings file 'W:\XXX\app\platforms\android\settings.gradle'.
> startup failed:
General error during semantic analysis: Unsupported class file major version 60
java.lang.IllegalArgumentException: Unsupported class file major version 60
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:196)
[...]
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
at java.base/java.lang.Thread.run(Thread.java:831)
1 error
* 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 748ms
Command gradlew.bat failed with exit code 1
ns 预览命令完美运行
我正在 Windows 10 上开发。
尝试了很多,搜索了很多,注意到有效... 非常感谢您的帮助。
【问题讨论】:
标签: android build nativescript