Search code examples
androidandroid-studioandroid-sdk-toolsaapt2

Android Studio 3.1.1 not working fine


Recently I have installed latest android studio 3.1.1 and created new Kotlin demo project but its not working fine. When I open it some aapt2.exe command window open. Please check below screenshot.

enter image description here

Also when I close android studio its hang and not close. I have to force close it via Task Manager.

I have also try it with java code but nothing is worked.


Solution

    1. Uninstall Android studio ->
    2. Delete .android folder ->
    3. Clear temp files ->
    4. fix registry error using CCleaner or as you prefer ->
    5. Restart system ->
    6. Reinstall ->
    7. Restart system.

    That worked and working fine for me now.

    Update : Check whether SDK and android studio version are same. In case of mismatch it may not work.