Android studio APP运行异常集锦

1. Execution failed for task ‘:anjian6:transformDexWithInstantRunDependenciesApkForDebug’.

去掉快速运行功能
File->Settings->Built,Execution,Deployment->Instant Run
不用勾选Enable Instant Run to hot swap code/resource changes on deploy(default enabled)

2. please select Android SDK

Android studio APP运行异常集锦_第1张图片

解决办法 file -----> projiect strcture
Android studio APP运行异常集锦_第2张图片

5. Execution failed for task ‘:app:compileDebugJavaWithJavac’

原因很多,在AS的Terminal中输入命令gradlew compileDebugJavaWithJavac
Android studio APP运行异常集锦_第3张图片
命令执行完成后会显示错误的地方

你可能感兴趣的:(android,编译异常)