aapt

crunch/resource packaging with aapt in ant build uses cache from other projects

浪子不回头ぞ 提交于 2019-12-04 03:43:40
问题 I have two android apps using a common library. Each project defines its own background images for the splash screen and a few others. These images have the same names in both apps. When I build/run from eclipse, each app uses the correct background images. However, when I run my ant build file, the contents are mixed up when packaging resources and the same images are used for both applications. I am sure there is a cache somewhere that I need to clear but I can't find it (running on MacOSX

Unable to install apk

房东的猫 提交于 2019-12-04 03:31:12
问题 I am using Eclipse Ganymede with ADT 10.0 plugin and Android3.0 SDK to build my application. When i try to deploy the application on my phone I get the following written on my console: [2011-05-06 10:35:38 - MyProject] Failed to install MyProject.apk on device [2011-05-06 10:35:38 - MyProject] (null) [2011-05-06 10:35:38 - MyProject] Launch canceled! and the following is written to adb logcat : INFO/zipro(2499): Could not find end-of-central-directory in Zip DEBUG/asset(2499): failed to open

What limits are there on the number of Android resources?

拥有回忆 提交于 2019-12-03 11:10:47
One of our apps has several thousand small data files that we're currently packaging as assets. It would help our code if we could package them as raw resources. I have tried to track down what the limits are for the number of resources an app can have of each type, but I haven't found any documentation on this. Does anyone know what the limits are on the number of Android resources? After a lot of experimenting, it seems that you can have up to 16 bits worth of resources (65,536 resources) for each resource type. (There may be additional bits reserved for future use, which would reduce the

How can I use Android aaptOptions?

匿名 (未验证) 提交于 2019-12-03 02:24:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: What are the meaning of the aaptOptions.noCompress , etc.; can anybody explain them to me? android { aaptOptions { noCompress 'foo', 'bar' ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~' } } This affects all tasks using aapt. 回答1: Yes, docs give no clue. Well aapt tool is inside specific build-tools folder and it has options as listed below. For example ignoreAssetsPattern in build.gradle is related to --ignore-assets option The next step would be looking at android gradle plugin to see how aapt

How to make Android&#039;s aapt and adb work on 64-bit Ubuntu without ia32-libs (works for versions 12, 13 and 14)

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Since Ubuntu 13.10 no longer has ia32-libs I cannot get my android development environment running on a clean install of 13.10. The error is ~/android-studio/sdk/build-tools/android-4.2.2/aapt": error=2, No such file or directory This file does exist and is executable but it is a 32bit executable. In previous installs I just installed ia32-libs to fix this but this solution no longer works for Ubuntu 13.10. I have tried solutions proposed by askubuntu questions eg. this one https://askubuntu.com/questions/107230/what-happened-to-the-ia32

Aapt is not working correctly - cannot generate R IDs on fresh project

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am running headless Ubuntu Server, with Jenkins, for Android builds, mostly for testing, several physical devices are connected all the time. Week ago it started to behave wierd, it was impossible to have sucesful build on this machine. At first I thought it might be something with code, then pom.xml files. Maven projects are throwing the same error (132): [INFO] Illegal instruction (core dumped) [ERROR] Error when generating sources. ... Caused by: com.jayway.maven.plugins.android.ExecutionException: ANDROID-040-001: Could not execute:

Ant Build AAPT Crunch is stripping draw9 information from Library resource images

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a project that is using a library project. The Library Project has draw9 (9.png) files and when building the apk via Ant it is stripping the draw9 info on scaleable and fillable areas. The result is that the app just stretches the images without using draw9 info. In Android's build.xml <target name="-package-resources" depends="-crunch"> this is calling crunch, which updates the pre-processed PNG cache (anyone know where this cache is held?). -crunch runs a task in aapt called crunch. But I have not been able to find any information

Android SDK - aapt error : libstdc++.so.6 cannot open shared object file

匿名 (未验证) 提交于 2019-12-03 01:14:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I was creating a new project out of nothing, for testing purpose, leaving all parameter to default (I didn't made any code change), on a new ADT installation (Ubuntu Gnome 14.04 LTS, x86_64 CPU), but I have the following error in the Eclipse Console : [2014-06-11 09:03:10 - Kronos] /home/erwan/Applications/ADT/adt-bundle-linux-x86_64-20140321/sdk/build-tools/19.1.0/aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory Here is what I already tried: -> I tried to (re)install ia32

获取APP包名,launcherActivity

匿名 (未验证) 提交于 2019-12-03 00:09:02
1 aapt即Android Asset Packaging Tool,在SDK的build-tools目录下。该工具可以查看apk包名和launcherActivity,当然还有更多的功能,有兴趣的可以查看相关资料。 一、下载aapt 2.勾选build-tools,随便选一个版本,我这里选的是24的版本 二、获取apk包名 三、获取launcherActivity 四、写脚本 五、运行appium 3.在pycharm运行脚本,随后在手机上会弹出安装下面两个软件的提示,安装后,桌面上多两个图标。那么恭喜你启动成功! 六、最终代码如下 # coding=utf-8 from appium import webdriver desired_caps = { driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps) 这个地址是怎么来的呢? https://www.cnblogs.com/yoyoketang/p/6128735.html 来源:博客园 作者: jenny_200 链接:https://www.cnblogs.com/bobo200/p/11555630.html

getting \" 'android:icon' attribute: attribute is not a string value” error while uploading an APK to the play store

瘦欲@ 提交于 2019-12-02 23:43:56
Background After so many hours of my free time, I'm ready to publish my very first app to the play store, but sadly I'm having difficulties uploading the signed app. I've successfully exported the app with the keystore I've created (all via Eclipse & ADT), so I have the signed APK to be uploaded to the play store ( here ). The problem I keep getting this message: Upload failed Your APK cannot be analyzed using 'aapt dump badging'. Error output: Failed to run aapt dump badging: W/ResourceType(14856): No known package when getting value for resource number 0x01080049 ERROR getting 'android:icon'