Exception : AAPT2 error: check logs for details

前端 未结 23 1790
走了就别回头了
走了就别回头了 2020-11-27 14:00
Task :processDebugResources Failed to execute aapt com.android.ide.common.process.ProcessException: Failed to execute aapt
    at com.android.builder.core.AndroidBui         


        
23条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 14:40

    AAPT2 Error solution.

    If your Android studio has been updated.

    Maybe, you would face an error in the studio like "AAPT 2 error: check the log for details"

    This error will occur when you have done something wrong in your .xml file such as incorrect value, content not found, etc.

    But, At that time you will not have the error specification there. Because the new version of Android Studio does not give you a specific error. It gives like AAPT2 error.

    If you want to know where the actual error is then

    Follow step.

    1. Look at the panel which is at the right of your Android studio Check out the "Gradle" tab and click on it.
    2. You will see the "app" option. Click on it.
    3. In the app options you will see [Tasks -> build] click on it.
    4. Then you will get options list and see "assembleDebug" double click on it.
    5. Keep the patience and See build tab at the bottom panel of Android studios, you will get an exact error there what you made a mistake in which file and which position.

提交回复
热议问题