我有一个本地脚本(3.0)的应用程序,我正在开发的mac (ElCapitan)。我可以毫无问题地运行iOS模拟器,但我找不到一种为安卓构建应用程序的方法。我收到以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'MyApp'.
> Flavor 'nativescript-telerik-ui' has unknown dimension 'nativescript-telerik-ui'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.004 secs
Command ./gradlew failed with exit code 1
我严格遵循原生脚本文档,移除android平台并重新添加,重新安装Android SDK和工具,但都没有成功。
在这一点上,我没有想法。任何帮助都将不胜感激。
谢谢。
发布于 2017-08-17 05:06:02
你试过用核弹吗?tns plugin remove nativescript-telerik-ui tns plugin add nativescript-telerik-ui
可能你有一个老版本
发布于 2020-03-05 14:27:03
您似乎更改了"AndroidManifest.xml“文件中的某些内容,这是不正确的。请修复"AndroidManifest.xml“文件。
如果没有,你可以试试这个
tns platform remove android
tns platform add android
如果仅有这两行不能满足解决方案,您可以在android Studio上运行Android平台。
应用/平台/安卓
这是你必须在Android Studio上打开的目录。打开这个之后,Android Studio会向你建议你必须做什么。
https://stackoverflow.com/questions/43993776
复制相似问题