在Android Studio中运行Android应用程序时出错 这是我的Logcat:
Information:Gradle tasks [:app:clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:assembleDebug]
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not add entry '0' to cache localClassSetAnalysis.bin (F:\SATISH BackUp\Android 2016\EdulocationApp\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin).
Information:BUILD FAILED
Information:Total time: 17.616 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
答案 0 :(得分:0)
溶胶。 1) 像这样在环境变量中设置JAVA_HOME ...... 变量名称:JAVA_HOME 变量值:C:\ Program Files \ Java \ jdk1.8.0_111
溶胶。 2) 在项目设置中设置SDK位置 enter image description here