aapt not found under the right path
It seems that cleaning this specific project doesn’t work but cleaning all open project does the trick. I leave this question if someone else get this issue.
It seems that cleaning this specific project doesn’t work but cleaning all open project does the trick. I leave this question if someone else get this issue.
Based on the new stable release of Android Studio (3.6) we have: So, now to find your generated resource classes you need the following steps: 1) Open your project. 2) Go to your module build path. 3) Open the outputs/apk/debug/app-name-debug.apk file. 4) Choose your classes.dex file. 5) Look at the down placed area and go … Read more
According to Xavier Durochet’s explanation on G+, it’s due to one of the libraries you use having it’s own ic_launcher.png — which they of course should not (more on that at the bottom). Chances are the two icons mentioned in the log are different: one is yours and another one is most likely the generic … Read more
When declaring id in resources, the body should be empty <item type=”id” name=”id_name” /> For more info please have a look on below link https://developer.android.com/guide/topics/resources/more-resources#Id So as Oliver Manyasa mentioned, it should be as below <?xml version=”1.0″ encoding=”utf-8″?> <resources> <item name=”tv_deviceName” type=”id”/> </resources>
You have a misplaced tag. The new AAPT (AAPT2) now throws an error on this. From the docs in here: https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html Behavior changes when using AAPT2 To improve incremental resource processing, Android plugin 3.0.0 enables AAPT2 by default. Although AAPT2 should immediately work with older projects, this section describes some behavior changes that you should … Read more
You can create a class which extends Resources and override the methods getColor(int) and getColor(int, Theme). Example: colors.xml <?xml version=”1.0″ encoding=”utf-8″?> <resources> <color name=”your_special_color”>#FF0099CC</color> </resources> Res.java public class Res extends Resources { public Res(Resources original) { super(original.getAssets(), original.getDisplayMetrics(), original.getConfiguration()); } @Override public int getColor(int id) throws NotFoundException { return getColor(id, null); } @Override public int … Read more
Another way(without adding i386 architecture)… sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 sudo apt-get install lib32z1 Ref: Fix Android adb on Ubuntu 13.10 64bit
By default, the SDK Manager from the command line does not include the build tools in the list. They’re in the “obsolete” category. To see all available downloads, use android list sdk –all And then to get one of the packages in that list from the command line, use: android update sdk -u -a -t … Read more
Yes you can view XML files of an Android APK file. There is a tool for this: android-apktool It is a tool for reverse engineering 3rd party, closed, binary Android apps How to do this on your Windows System: Download apktool-install-windows-* file Download apktool-* file Unpack both to your Windows directory Now copy the APK … Read more