android - Andriod:How to set lib path for aapt command? -


i trying compile android project using command line in windows. when use aapt generate r file, comes out error below:

 d:\sampleproject\myapplication>aapt package -f -m -j ./gen -s ./app/src/main/res  -i "d:\programinstall\android\android sdk\platforms\android-21\android.jar" -m ./app/src/main/androidmanifest.xml    .\app\src\main\res\values\styles.xml:4: error: error retrieving parent item:  no resource found matches given name 'theme.appcompat.light.darkaction bar'.     

i've found theme.appcompact.light.darkactionbar related appcompat_v7 floder while floder under in libs floder, how can let complier know find lib need?

i know late or may have found answer still posting:

d:\sampleproject\myapplication>aapt package **--auto-add-overlay** -f -m -j ./gen -s ./app/src/main/res **-s "path_to_prebuilts\prebuilts\devtools\extras\android\support\v7\appcompat\res\"** -i "d:\programinstall\android\android sdk\platforms\android-21\android.jar" -m ./app/src/main/androidmanifest.xml 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -