Android : Getting “Cannot reload AVD list:” error at the time of execution

后端 未结 7 2221
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-02 11:07

At the time of exectution am getting an error

Cannot reload AVD list: cvc-enumeration-valid: Value \'280dpi\' is not facet-valid with respect to enumeration \'[l

7条回答
  •  甜味超标
    2021-02-02 11:52

    The problem I have with all of these answers is they throw out the baby with the bathwater. Just read the problem and you'll realize the devices config file has a value that's not allowed.

    1. Check which resolutions are not facet-valid according to the error. In the case of the OP's problem it's 280dpi. In mine, it was 360dpi
    2. Find the closest value in the enumeration. Refer to Scale factor for xxhdpi android. In the OP case, 280dpi ~ hdpi. In my case, 360dpi ~xhdpi.
    3. Open the files described in the error. (devices.xml in x86 and armeabi-v7a in ...Android\sdk\system-images\android-23\android-wear\ in my case)
    4. Edit any instances of invalid values found in step 1 to valid values found in step 2. 280dpi becomes hdpi

    Edit: The problem with the answers that blindly delete the entire folder is that now you can't develop for Android Wear. The problem with replacing devices.xml folder is you're providing a list of phone specs where wearable specs are expected. Now you can't test.

提交回复
热议问题