Error:error: '270' is incompatible with attribute android:layout_width (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294].
Error:'270' 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
要获得完整输出,请点击here 对于XML布局,请单击here
现在我没有比告诉你更多的东西,所以我希望我能找到(要么感谢你,要么更深入地探索)解决方案。
答案 0 :(得分:0)
看起来你忘了使用单位('270'代替,例如,'270dp')。 更多信息:https://developer.android.com/guide/topics/resources/more-resources.html#Dimension