android - invalid resource directory name, drawable-anydpi-v21 -
i build application , send on samsung tablet using android 4.2.2. have application compatible newer versions (i.e. api 23)
i start application using command :
react-native run-android
when it's building receive error, clean project twice no success. not use eclipse or android studio.
:app:processdebugresourcesinvalid resource directory name: d:\projects\react-native\project\android\app\build\intermediates\res\merged\debug/drawable-anydpi-v21
this part of gradle file.
android { compilesdkversion 17 buildtoolsversion "19.1.0" defaultconfig { applicationid "com.project" minsdkversion 17 targetsdkversion 23 ... } dependencies { compile filetree(dir: "libs", include: ["*.jar"]) compile "com.android.support:appcompat-v7:18.0.+" compile "com.facebook.react:react-native:+" // node_modules }
folders in res-folder are allowed defined android, example "drawable".
read - https://developer.android.com/guide/topics/resources/available-resources.html
"drawable resources- define various graphics bitmaps or xml. saved in res/drawable/ , accessed r.drawable class."
if choose else error "invalid resource directory name" when building project.
and note
compilesdkversion -(is way tell gradle version of android sdk compile app with)always compile latest sdk ,changing compilesdkversion not change runtime behavior.
minsdkversion lower bound app. - 1 of signals google play store uses determine of user’s devices app can installed on.
targetsdkversion -targetsdkversion main way android provides forward compatibility not applying behavior changes unless targetsdkversion updated.
Comments
Post a Comment