2016-10-17 276 views
0

我已經將SDK從版本22更新到24以及版本。 另外,我已經改變了項目結構符合SDK和構建版本24.RE:運行android項目時出錯

當我嘗試運行我的項目,我得到以下錯誤:

Cannot reload AVD list: cvc-enumeration-valid: Value '280dpi' is not facet-valid with respect to enumeration '[ldpi, mdpi, tvdpi, hdpi, xhdpi, 400dpi, xxhdpi, 560dpi, xxxhdpi]'. It must be a value from the enumeration. Error parsing C:\Users\111299\AppData\Local\Android\sdk3\system-images\android-22\android-wear\armeabi-v7a\devices.xml cvc-enumeration-valid: Value '280dpi' is not facet-valid with respect to enumeration '[ldpi, mdpi, tvdpi, hdpi, xhdpi, 400dpi, xxhdpi, 560dpi, xxxhdpi]'. It must be a value from the enumeration. Error parsing C:\Users\111299\AppData\Local\Android\sdk3\system-images\android-22\android-wear\x86\devices.xml cvc-enumeration-valid: Value '280dpi' is not facet-valid with respect to enumeration '[ldpi, mdpi, tvdpi, hdpi, xhdpi, 400dpi, xxhdpi, 560dpi, xxxhdpi]'. It must be a value from the enumeration. Error parsing C:\Users\111299\AppData\Local\Android\sdk3\system-images\android-23\android-wear\armeabi-v7a\devices.xml cvc-enumeration-valid: Value '280dpi' is not facet-valid with respect to enumeration '[ldpi, mdpi, tvdpi, hdpi, xhdpi, 400dpi, xxhdpi, 560dpi, xxxhdpi]'. It must be a value from the enumeration. Error parsing C:\Users\111299\AppData\Local\Android\sdk3\system-images\android-23\android-wear\x86\devices.xml cvc-enumeration-valid: Value '280dpi' is not facet-valid with respect to enumeration '[ldpi, mdpi, tvdpi, hdpi, xhdpi, 400dpi, xxhdpi, 560dpi, xxxhdpi]'. It must be a value from the enumeration. Error parsing C:\Users\111299\AppData\Local\Android\sdk3\system-images\android-22\android-wear\armeabi-v7a\devices.xml cvc-enumeration-valid: Value '280dpi' is not facet-valid with respect to enumeration '[ldpi, mdpi, tvdpi, hdpi, xhdpi, 400dpi, xxhdpi, 560dpi, xxxhdpi]'. It must be a value from the enumeration. Error parsing C:\Users\111299\AppData\Local\Android\sdk3\system-images\android-22\android-wear\x86\devices.xml cvc-enumeration-valid: Value '280dpi' is not facet-valid with respect to enumeration '[ldpi, mdpi, tvdpi, hdpi, xhdpi, 400dpi, xxhdpi, 560dpi, xxxhdpi]'. It must be a value from the enumeration. Error parsing C:\Users\111299\AppData\Local\Android\sdk3\system-images\android-23\android-wear\armeabi-v7a\devices.xml cvc-enumeration-valid: Value '280dpi' is not facet-valid with respect to enumeration '[ldpi, mdpi, tvdpi, hdpi, xhdpi, 400dpi, xxhdpi, 560dpi, xxxhdpi]'. It must be a value from the enumeration. Error parsing C:\Users\111299\AppData\Local\Android\sdk3\system-images\android-23\android-wear\x86\devices.xm

請指教。

+0

檢查此:http://stackoverflow.com/questions/33253381/using-android-support-v4-library-in-intellij-idea –

回答

0

1)您製作了devices.xml文件還是自動生成?
2)您使用了哪些其他資源?您是否爲不同的屏幕尺寸定義了多種佈局?你有導入位圖和其他圖像或相關文件?

我建議你檢查你的drawable和mipmap文件夾。錯誤代碼具體指明瞭「系統映像」,「ldpi,mdpi,tvdpi,hdpi,xhdpi,400dpi,xxhdpi,560dpi,xxxhdpi」等。

+0

我剛剛安裝了Android Studio,並從SDK管理器下載了所需的東西。 –

+0

我應該創建一個新項目嗎?請指教。 –

+0

首先,嘗試將舊項目導入新下載的Android Studio。如果這不起作用,我會建議手動移植你的代碼。我想如果你在網上搜索一下,你可能會得到一個更好的建議,接下來該做什麼。另外,如果您對答案滿意,請將其標記爲已接受:D – Rippr