aapt

After migrate to Android Studio 3.0 drawable 'png' NOT compressed in debug build

杀马特。学长 韩版系。学妹 提交于 2019-12-13 20:27:57
问题 Drawables compressed in release build types, but NOT compressed in debug build types. Android Studio 3.0 Build #AI-171.4408382, built on October 20, 2017 JRE: 1.8.0_152-release-915-b01 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 4.10.0-38-generic In previous version drawable was always compressed How can I configure debug builds to compress png drawables also? 回答1: The reason for this is documented here Here is the quote If you're using Android plugin 3.0.0 or higher, PNG

Retrieving Native Code Architecture from an Android App

青春壹個敷衍的年華 提交于 2019-12-13 04:53:23
问题 I'm working on an app which determines the native code architecture and native libraries used by all the apps installed on the device. It's similar to running the following command. aapt dump badging <file.apk location> The package manager doesn't provide information about the native code like this one or the native shared libraries. I can retrieve the native shared libraries that the target app uses with the following code: try { Set<String> libs = new HashSet<String>(); String mapsFile = "

My Commandline shell does not support aapt command

本秂侑毒 提交于 2019-12-12 15:03:01
问题 i am working on andriod development and trying to get the list of activities supported by an APK. Most of the answer that I come across talk about following command: aapt dump xmltree AndroidManifest.xml But when I run that command on my command line it throws following error: aapt is not recognized as an internal or external command I am able to run other adb commands successfully I am not sure what is wrong with aapt command. On a side note I am doing development in Windows 7 environment.

Segmentation fault with aapt

末鹿安然 提交于 2019-12-12 11:45:09
问题 Trying to build and Android project using Maven, we are not able to compile it with google play services apklib with it. I've tried to remove all the languages from the apklib, just keeping the default one, and it seems to be able to execute aapt with no problems. Does anybody run into this problem? I've tried to do what Jake Wharton says in this website: https://github.com/JakeWharton/gms-mvn-install , but the Segmentation fault still happening. Ideas? Thank you for your time. aapt: warning:

using android aapt in java program

不打扰是莪最后的温柔 提交于 2019-12-12 10:24:49
问题 I have been trying to execute the aapt command through a java program for quite some time now. My hunch is that I should be using the runtime.exec() command to make this happen. However, I have looked at other questions and answers and none seem to work for me. The command is: aapt package -u -f -F "/home/jay/testing_FILES.apk" "/home/jay/testing_FILES" where the /home/jay/testing_FILES is the original folder and the /home/jay/testing_FILES.apk is the packaged name and location of the final

Configure gradle.properties android.enableAapt=false on travis yml file

人盡茶涼 提交于 2019-12-12 09:37:26
问题 In my android's gradle.properties I have the following: android.enableAapt2=false My gradle.properties is located in my ~/.gradle/gradle.properties in my local machine. I am wondering how I can add android.enableAapt=false to my yml file. I tried to add it under global but that didn't work there was no errors but in robolectric it needs to be set if you are using gradle:3.0.0-beta3 . language: android jdk: oraclejdk8 env: global: - ANDROID_TARGET=android-25 - ANDROID_ABI=armeabi-v7a - android

aapt ERROR getting 'android:name' attribute: attribute is not a string value

谁说我不能喝 提交于 2019-12-12 08:33:13
问题 As my apk is generated I execute the command aapt dump badging on it. I keep receiving the following error: application: label='Name' icon='res/drawable/icon_128x128.png' application-debuggable launchable-activity: name='co.package.name.MainActivity' label='Name' icon='' ERROR getting 'android:name' attribute: attribute is not a string value I've tried to add a label name for all activities and remove all other values-xxx folders under /res but in vain. However, if I create a whole new

Adding Google-play-services crashes aapt.exe

与世无争的帅哥 提交于 2019-12-11 20:40:12
问题 I'm trying to use google maps v2 for android by adding the google-play-services to my app as a library. Everytime I set a reference to the library I get windows dialog with the message that aapt.exe has crashed. And after I've set a reference to the library all my source files get errors. R.java in my gen folder gets deleted. Console is giving this message [google-play-services_lib] R.java was modified manually! Reverting to generated version! After deleting the reference to the google-play

aapt资源重复覆盖整合

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 18:09:31
aapt: -f 如果编译出来的文件已经存在,强制覆盖。 -m 使生成的包的目录放在-J参数指定的目录。 -J 指定生成的R.Java的输出目录 -S res文件夹路径(可以添加多个资源) -A assert文件夹的路径 -M AndroidManifest.xml的路径 -I 某个版本平台的android.jar/依赖库的路径 -F 具体指定apk文件的输出 将工程的资源编译R.java文件 aapt package -m -J <R.java目录> -S <res目录> -I <android.jar目录> -M <AndroidManifest.xml目录> 将工程的资源编译编译到一个包里 aapt package -f -S <res目录> -I <android.jar目录> -A<assert目录> -M <AndroidManifest.xml目录> -F <输出的包目录> 多资源整合例子: res:资源目录 ForRes:资源目录 ./aapt package -f -S res -S ForRes -M AndroidManifest.xml --auto-add-overlay -I android.jar -F ./myres.apk 两个资源整合进myres.apk --auto-add-overlay:整合覆盖重复资源 res覆盖ForRes资源

Unable to open file for read: Permission denied

主宰稳场 提交于 2019-12-11 15:21:36
问题 Suddenly for my IONIC project I started to getting below mentioned error I have android sdk setup as mentioned below : Android SDK Tools : 25.2.5 Android SDK Platform-tools : 26 Android SDK Build-tools : 26 Would you please help me for the same. I have tried with : 1) Delete android project from platform and created new one 2) Given all the permission to platforms folder and to its subfolders 回答1: I have found the solution. There was an issue with new android-sdk > build-tools > 25.0.2. So I