I'm trying to build apk manually (without gradle) according to this manual, but I don't understand how to use libraries with resources. I've downloaded Android Support Library, unzipped appcopmpat
directory and specified -classpath
in javac
. I'm trying also to specify path to resources in aapt
, but it reports name conflict. Should I just rename my app's resources, or is there a better solution?
Here's the command ($MANIFEST
and $ANDROID
are just paths):
aapt package -f -m -J app/src -M ${MANIFEST} -I ${ANDROID} -S appcompat/res app/res
And the error message:
app/res/values/strings.xml: error: Duplicate file.
appcompat/res/values/strings.xml: Original is here.