【问题标题】:Nativescript building android errorsNativescript构建android错误
【发布时间】:2017-05-16 06:17:26
【问题描述】:

我有一个在 mac (ElCapitan) 上开发的 nativescript (3.0) 应用程序。我能够毫无问题地运行 iOS 模拟器,但我找不到为 Android 构建应用程序的方法。我收到以下错误:

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

我严格按照nativescript文档,删除android平台重新添加,重新安装Android SDK和工具,但没有任何成功。

在这一点上,我没有想法。任何帮助将不胜感激。

谢谢。

【问题讨论】:

  • 你应该将标签添加到“android”或“gradle”,因为“Flavor”和“Dimensions”是 Gradle 术语
  • 此软件包已被弃用您检查了吗?发生了什么变化...telerik-ui > nativescript-pro-ui > nativescript-ui

标签: nativescript


【解决方案1】:

你试过核弹吗? tns plugin remove nativescript-telerik-ui tns plugin add nativescript-telerik-ui 我是你有一个旧版本

【讨论】:

  • 是的,我实际上最终放弃了整个项目并重新开始并修复了它。不知道出了什么问题。
【解决方案2】:

您似乎更改了“AndroidManifest.xml”文件中的某些内容,这是不正确的。请修复“AndroidManifest.xml”文件。

如果没有,你可以试试这个

tns platform remove android
tns platform add android

如果只有这两行还不够,可以在Android Studio上运行android平台。

应用程序/平台/安卓

这是目录,你必须在 Android Studio 上打开。打开这个之后,Android Studio 会建议你做什么。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-07-15
    • 1970-01-01
    • 2016-07-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多