2016-11-12 79 views
0

獲取錯誤,而Android Studio中 運行Android應用程序這是我的logcat:Android Studio中得到錯誤,同時運行應用程序

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

檢查logcat是否有錯誤並將其發佈到此處。 –

回答

0

索爾。 1) 設置JAVA_HOME環境變量是這樣的... 變量名:JAVA_HOME 變量值:C:\ Program Files文件\的Java \ jdk1.8.0_111

索爾。 2) 在項目設置中設置SDK位置 enter image description here

+0

確定,JAVA_HOME沒有配置。但是配置後出現同樣的錯誤... –

+0

Ping屏幕截圖的日誌 –

+0

很高興你能幫助我。剛剛刪除並創建相同的項目,問題已解決。 –

相關問題