Closed GoogleCodeExporter closed 9 years ago
It seems you still use older aapt. Most probably you have old aapt somewhere in
your path and it overrides one you think you use.
Original comment by Brut.alll
on 5 Dec 2011 at 2:37
Thats exactly what i thought but this cant be the case, i just downloaded the
SDK onto this computer and downloaded SDK tools r14 and after the download i
added the SDK platform tools directory to the front of my path and still got
this.. aapt hates me :(
Original comment by GazaIa...@gmail.com
on 5 Dec 2011 at 2:51
lado@genlap ~/silence $ apktool b CameraGoogle
I: Copying classes.dex file...
I: Checking whether resources has changed...
I: Building resources...
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:2: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:4: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:4: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:4: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:4: error: No
resource identifier found for attribute 'entryValues' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:4: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:4: error: No
resource identifier found for attribute 'icons' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:4: error: No
resource identifier found for attribute 'largeIcons' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:5: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:5: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:5: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:5: error: No
resource identifier found for attribute 'singleIcon' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:6: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:6: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:6: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:6: error: No
resource identifier found for attribute 'entryValues' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:6: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:6: error: No
resource identifier found for attribute 'singleIcon' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:7: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:7: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:7: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:7: error: No
resource identifier found for attribute 'entryValues' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:7: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:7: error: No
resource identifier found for attribute 'icons' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:7: error: No
resource identifier found for attribute 'largeIcons' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:8: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:8: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:8: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:8: error: No
resource identifier found for attribute 'entryValues' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:8: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:8: error: No
resource identifier found for attribute 'icons' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:8: error: No
resource identifier found for attribute 'largeIcons' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:9: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:9: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:9: error: No
resource identifier found for attribute 'entryValues' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:9: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:10: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:10: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:10: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:10: error: No
resource identifier found for attribute 'entryValues' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:10: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:11: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:11: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:11: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:11: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:11: error: No
resource identifier found for attribute 'icons' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/camera_preferences.xml:11: error: No
resource identifier found for attribute 'largeIcons' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:2: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:4: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:4: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:4: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:4: error: No
resource identifier found for attribException in thread "main"
brut.androlib.AndrolibException: brut.common.BrutException: could not exec
command: [aapt, p, -F, /tmp/APKTOOL8543285704805149120.tmp, -I,
/home/lado/apktool/framework/1.apk, -S, /home/lado/silence/CameraGoogle/res,
-M, /home/lado/silence/CameraGoogle/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F,
/tmp/APKTOOL8543285704805149120.tmp, -I, /home/lado/apktool/framework/1.apk,
-S, /home/lado/silence/CameraGoogle/res, -M,
/home/lado/silence/CameraGoogle/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
ute 'entryValues' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:4: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:4: error: No
resource identifier found for attribute 'largeIcons' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:5: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:5: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:5: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:5: error: No
resource identifier found for attribute 'entryValues' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:5: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:5: error: No
resource identifier found for attribute 'largeIcons' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:6: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:6: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:6: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:6: error: No
resource identifier found for attribute 'entryValues' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:6: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:6: error: No
resource identifier found for attribute 'icons' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:6: error: No
resource identifier found for attribute 'largeIcons' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:7: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:7: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:7: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:7: error: No
resource identifier found for attribute 'entryValues' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:7: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:7: error: No
resource identifier found for attribute 'icons' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:7: error: No
resource identifier found for attribute 'largeIcons' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:8: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:8: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:8: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:8: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:8: error: No
resource identifier found for attribute 'icons' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:8: error: No
resource identifier found for attribute 'largeIcons' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:9: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:9: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:9: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:9: error: No
resource identifier found for attribute 'entryValues' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:9: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:9: error: No
resource identifier found for attribute 'icons' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:9: error: No
resource identifier found for attribute 'largeIcons' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:10: error: No
resource identifier found for attribute 'title' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:10: error: No
resource identifier found for attribute 'key' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:10: error: No
resource identifier found for attribute 'defaultValue' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:10: error: No
resource identifier found for attribute 'entryValues' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:10: error: No
resource identifier found for attribute 'entries' in package
'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:10: error: No
resource identifier found for attribute 'icons' in package 'com.android.camera'
/home/lado/silence/CameraGoogle/res/xml/video_preferences.xml:10: error: No
resource identifier found for attribute 'largeIcons' in package
'com.android.camera'
Original comment by herrl...@gmail.com
on 27 Dec 2011 at 10:30
I'm having the same issue. It appears to be a unix/windows direction-of-slash
issue:
invalid resource directory name: C:\Users\Computer\Desktop\apktool\framework-res
\res/drawable-sw600dp-hdpi
Note the "/" between res and drawable. As this is a windows machine, it should
be a "\"
Original comment by peter.sa...@gmail.com
on 18 Oct 2012 at 7:15
OP issue is outdated AAPT. Download the most updated one from Android-SDK.
Original comment by connor.tumbleson
on 15 Nov 2012 at 3:16
Original issue reported on code.google.com by
GazaIa...@gmail.com
on 5 Dec 2011 at 1:57