迁移到Android Studio 3.4后,LibGDX游戏崩溃

时间:2019-04-25 13:23:39

标签: android android-studio libgdx

迁移到Android Studio 3.4之后,该游戏现在崩溃了。在3.3上可以正常工作。这是什么意思?

org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures.
    at 

Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':android:transformDexWithInstantRunSlicesApkForDebug'
...

Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.io.FileNotFoundException: /Users/limtc/AndroidStudioProjects/Space War/android/build/intermediates/instant_run_split_apk_resources/debug/instantRunSplitApkResourcesDebug/out/slice_1/resources_ap
,,,

Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /Users/limtc/AndroidStudioProjects/Space War/android/build/intermediates/instant_run_split_apk_resources/debug/instantRunSplitApkResourcesDebug/out/slice_1/resources_ap
...

Caused by: java.io.FileNotFoundException: /Users/limtc/AndroidStudioProjects/Space War/android/build/intermediates/instant_run_split_apk_resources/debug/instantRunSplitApkResourcesDebug/out/slice_1/resources_ap
...

关闭即时运行后,我现在可以部署到手机了!但是现在尝试生成捆绑包:

org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures.
...

Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':android:lintVitalRelease'
...

Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':android:lintClassPath'.
...

Caused by: org.gradle.internal.resolve.ArtifactResolveException: Could not download groovy-all.jar

也许现在有些东西离线了?谢谢!

1 个答案:

答案 0 :(得分:3)

根据消息:

java.io.FileNotFoundException: /.../instant_run_split_apk_resources

我会说,尝试禁用即时运行。