无法运行dexer:Appcelerator Android build_ Titanium SDK:7.0.1

时间:2018-02-05 06:53:24

标签: appcelerator titanium-mobile appcelerator-titanium appcelerator-mobile appcelerator-studio

我得到"无法运行dexer:"在尝试使用Appcelerator为Android构建时。

Appc Studio 5.0.0,Titanium SDK:7.0.1

错误如下:

  

[ERROR] :  Failed to run dexer:
[ERROR] :  
[ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimRes;
[ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimatorRes;
[ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnyRes;
[ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/ArrayRes;
[ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AttrRes;
[ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BinderThread;
[ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BoolRes;
[ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/CallSuper;
[ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/CheckResult;
[ERROR] :  
[ERROR] :  UNEXPECTED TOP-LEVEL EXCEPTION:
[ERROR] :  java.lang.RuntimeException: Translation has been interrupted
[ERROR] :   at com.android.dx.command.dexer.Main.processAllFiles(Main.java:615)
[ERROR] :   at com.android.dx.command.dexer.Main.runMultiDex(Main.java:368)
[ERROR] :   at com.android.dx.command.dexer.Main.runDx(Main.java:289)
[ERROR] :   at com.android.dx.command.dexer.Main.main(Main.java:247)
[ERROR] :   at com.android.dx.command.Main.main(Main.java:94)
[ERROR] :  Caused by: java.lang.InterruptedException: Too many errors
[ERROR] :   at com.android.dx.command.dexer.Main.processAllFiles(Main.java:607)
[ERROR] :   ... 4 more
[ERROR] Application Installer abnormal process termination. Process exit value was 1

我们不确定如何在appcelerator中启用Multi dex。

1 个答案:

答案 0 :(得分:0)

截至目前,您只能交叉检查哪些模块正在使用具有不同版本的相同库集。然后对所有冲突的模块使用单个版本的库。

e.g。如果您使用ti.map& firebase.core,然后您可以对这两个模块使用ti.playservices

但是在你的情况下,冲突的库来自Annotation lib,那么你可以在这里提供所有模块的列表,这样我们可以检查哪一个导致了这个问题,或者你可以检查自己是否存在冲突的模块&按照上述流程解决它们。