When I run this command :
"aapt.exe" package -f -m -M "AndroidManifest.xml" -I "android.jar" -S "\res" -J "\RJava" --auto-add-overlay
I receive the error : Found tag id where item is expected
It's this row in the values.xml
that cause the problem :
<id name="view_tree_lifecycle_owner"/>
Note: with aapt2.exe
it's work well, it's with aapt.exe
that it's crash, but i need aapt.exe
because I m building apk file
You stated that
with aapt2.exe it's work well, it's with aapt.exe that it's crash, but i need aapt.exe because I m building apk file.
aapt2
completely and fully-fledged replaced aapt
in 2018. There is no good reason to stick with the old aapt
. The Stackoverflow post on the differences between aapt
and aapt2
can serve as an overview.