首页 > 解决方案 > 不使用 Android 为 Nativescript 构建应用程序

问题描述

我在为 android 应用程序构建 nativescript 时遇到问题。我可以构建应用程序,而 pne 一天,另一个构建崩溃了。我跑了'tns run android --bundle',它的日志错误是:

 FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> com.android.build.api.transform.TransformException: Error while generating the main dex list:
  Error while merging dex archives: 
  Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
  Program type already present: com.google.zxing.ChecksumException

* 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 27s

任何想法?

标签: androidnativescript

解决方案


推荐阅读