2017-10-16 63 views
-2

剛下載的Android Studio。逐字跟進this教程。嘗試「構建」時,請繼續運行以下錯誤,並且我不知道如何克服它。Android Studio Gradle構建錯誤:字符串類型不允許(在'activity_horizo​​ntal_margin'值'')

Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:compileDebugSources, :app:compileDebugAndroidTestSources, :app:compileDebugUnitTestSources] 
C:\Users\SV\AndroidStudioProjects\ToDoApp\app\build\intermediates\res\merged\debug\values\values.xml 
Error:(872, 69) String types not allowed (at 'activity_horizontal_margin' with value ''). 
Error:(872, 69) String types not allowed (at 'activity_horizontal_margin' with value ''). 
Error:Execution failed for task ':app:processDebugResources'. 
> com.android.ide.common.process.ProcessException: Failed to execute aapt 
Information:BUILD FAILED 
Information:Total time: 1.429 secs 
Information:3 errors 
Information:0 warnings 
Information:See complete output in console 
+0

您遺漏了'值'捫名=「activity_horizo​​ntal_margin」>'在你'RES /價值/'文件夾中的文件之一。 –

回答

0

裏面你values文件夾中創建一個文件調用它dimens.xml,如果你沒有一個了。然後添加以下代碼裏面:

相關問題