NullPointerExcepton in Android Studio plugin Android Support

前端 未结 5 1903
天涯浪人
天涯浪人 2020-12-03 23:46

I am getting the following exception in Android Studio plugin Android Support.

To get out of this error, I updated the Android Studio to 14.1, but studio just builds

相关标签:
5条回答
  • 2020-12-03 23:57

    I Slove it by this step you should delete this file that you can do it .

    go to the path :"C:\Users\Administrator.android\avd" and delete all the avd folders files .

    try again ,you can get it.

    0 讨论(0)
  • 2020-12-04 00:01

    It seems to be due to virtual devices that are already created are causing problems.

    How I solved this issue:

    1. Delete all folders from C:\Users\<userName>\.android\avd
    2. Recreate virtual device from avd manager
    0 讨论(0)
  • 2020-12-04 00:01

    I solved this error by opening the AVD Manager in Android Studio and uninstalling and reinstalling my emulators.

    0 讨论(0)
  • 2020-12-04 00:05

    Why this happens

    at  com.android.sdklib.internal.avd.AvdManager.parseAvdInfo(AvdManager.java:1616)
    

    The error seems to be in Android SDK library Android Virtual Device Manager. It tries to open a file, and some argument in File constructor is null.

    Solution:

    I installed the needed plugins again..and it works

    What else can be done in similar situations:

    1. Plugin damaged -> reinstall the plugin.
    2. SDK damaged -> reinstall Android SDK.
    3. Wrong version used -> check the used version or update Android SDK.
    0 讨论(0)
  • 2020-12-04 00:17

    It can be solved by editing build.gradle file and synch your project again. I edited following line classpath 'com.android.tools.build:gradle:2.3.3' and it worked.

    0 讨论(0)
提交回复
热议问题