简体   繁体   中英

android: resource not found

I just updated from android 2.1 to 3.0 and found many default andorid resources missing, such as:

android:icon="@android:drawable/ic_menu_preferences"
android:icon="@android:drawable/ic_menu_help"

What happened to then and any idea how to fix them?

They do not exist anymore, most likely. The Android folks advise against using their resources because of changes in the API -- now you know why :) I would keep a local copy from previous releases so that you can access them, were I you. (something they also suggest)

采用:

android:icon="@android:drawable/android:ic_menu_help"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM