【发布时间】:2018-08-12 16:50:40
【问题描述】:
我正在尝试为 Android 构建一个 ionic 应用程序,但是当我运行时
ionic cordova run android
我明白了
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
> com.android.build.api.transform.TransformException: java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files
尝试运行 ./gradlew clean 得到我
FAILURE: Build failed with an exception.
* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type FileHasher using BuildSessionScopeServices.createFileSnapshotter().
【问题讨论】:
标签: android cordova ionic-framework gradle