0
私はアンドロイドスタジオを使用しています。そこには、gradleビルド後に17エラーメッセージが終了しました。私はいつも再構築しようとしますが、同じエラーです。グレードコンソールでAndroid Gradle Build Failed
メッセージ:あなたが寸法の単位を使用していないよう
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
'gradle.properties'に' android.enableAapt2 = false'を設定しました。または、完全なガイドはこちらhttps://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html – Wizard
このattr.xmlファイルに問題があります。 "エラー:エラー: ' 6731は属性android:layout_height(attr)次元| enum [fill_parent = 4294967295、match_parent = 4294967295、wrap_content = 4294967294]と互換性がありません –
あなたはactivity_main.xmlファイルを送信してからi正確な問題を確認してください。 またはxmlファイルの寸法(幅と高さ)を確認することができます。この問題を解決することもできます。 –