2017-11-25 13 views
0

Ich habe Android Studio verwendet und dort 17 Fehlermeldungen nach Abschluss der Gradle fertig gestellt. Ich versuche immer wieder aufzubauen aber immer noch den gleichen Fehler.Android Gradle Build fehlgeschlagen

Nachricht in Grade Console:

Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar] 
C:\Users\admin\AndroidStudioProjects\Exam1\app\src\main\res\layout\activity_main.xml 
Error:error: '67' is incompatible with attribute android:layout_height (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294]. 
Error:error: '176' is incompatible with attribute android:layout_width (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294]. 
Error:error: '67' is incompatible with attribute android:layout_height (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294]. 
Error:error: '176' is incompatible with attribute android:layout_width (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294]. 
Error:error: '67' is incompatible with attribute android:layout_height (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294]. 
Error:error: '176' is incompatible with attribute android:layout_width (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294]. 
Error:'67' is incompatible with attribute android:layout_height (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294]. 
Error:'176' is incompatible with attribute android:layout_width (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294]. 
Error:'67' is incompatible with attribute android:layout_height (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294]. 
Error:'176' is incompatible with attribute android:layout_width (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294]. 
Error:'67' is incompatible with attribute android:layout_height (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294]. 
Error:'176' is incompatible with attribute android:layout_width (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294]. 
Error:failed linking file resources. 
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details 
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details 
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details 
Error:Execution failed for task ':app:processDebugResources'. > Failed to execute aapt 

Information:BUILD FAILED in 1m 11s 
Information:17 errors 
Information:0 warnings` 
Information:See complete output in console 
+0

set 'android.enableAapt2 = false' in' gradle.properties'. Oder folgen Sie der vollständigen Anleitung hier https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html – Wizard

+0

das Problem ist in dieser attr.xml-Datei vorhanden. "Fehler: Fehler: ' 67 'ist inkompatibel mit Attribut android: layout_height (attr) dimension | enum [fill_parent = 4294967295, match_parent = 4294967295, wrap_content = 4294967294]. "Bitte gib dort gültige Dimensionen an. –

+0

kannst du bitte die Datei activity_main.xml und dann i Überprüfen Sie, was genaues Problem ist. oder Sie können die Dimension (Breite und Höhe) in Ihrer XML-Datei überprüfen. Sie können dieses Problem auch lösen. –

Antwort

Verwandte Themen