aapt

Error: Cannot run aapt

。_饼干妹妹 提交于 2019-11-27 11:41:59
When I compile an android application ( I tried with the sample ones from the sdk). I get this error: >Error executing aapt: Cannot run program "/home/roel/projects/sdk/build-tools/18.0.1/aapt": >error=2, No such file or directory: error=2, No such file or directory KeyChainDemo >line 1 Android ADT Problem But aapt is at that location? >[roel@archUSB 18.0.1]$ ls /home/roel/projects/sdk/build-tools/18.0.1/ >NOTICE.txt aidl dx libLLVM.so libbcinfo.so llvm-rs-cc source.properties >**aapt** dexdump lib libbcc.so libclang.so renderscript Note: I also get the error "R cannot be resolved", but I'm

Android studio cannot find aapt

99封情书 提交于 2019-11-27 10:29:30
问题 Hi I am having trouble compiling, I get this error: Gradle: Execution failed for task ':ElectronicComponentInventorySearch:mergeDebugResources'. java.io.IOException: Cannot run program "/opt/android-studio/sdk/build-tools/android- 4.2.2/aapt": error=2, No such file or directory When I use locate: /opt/android-studio/sdk/build-tools/android-4.2.2/aapt Before I tried anything I made sure to chown the whole android-studio directory to my account and set permissions for everything to 775. Whats

Listing permissions of Android application via adb

£可爱£侵袭症+ 提交于 2019-11-27 09:46:25
问题 Using adb, how can I find out the which permissions an Android application requires? Because I want to display the permissions of multiple applications on different devices, viewing them in Google Play or Settings > Applications manager requires too much manual work. 回答1: I just wanted to combine Jason's and Juuso's answers together and notice that the former lists permissions that were granted , while the latter lists permissions that were requested (including ones that were granted). To see

Repackage APK file to contain custom assets - what build tool to use?

时光怂恿深爱的人放手 提交于 2019-11-27 08:28:49
Update : This is an old post, and references below to broken aapt versions will be out of date. Based on previous feedback, I am storing custom text fields in the assets directory of my app. I will write the app, using default user details in an asset file, and the client would like to rebuild the app for each user, including that user's details in the asset file. (I am aware this is method has some serious shortcomings, but the client is still keen to do it in this way - see Embed login details in APK file, different for each user (or other options?) ) This question relates to troubles I am

aapt not found under the right path

▼魔方 西西 提交于 2019-11-27 07:58:29
I just updated ADT, than the SDK and now I have in only one project the issue, that my aapt isn't found Error executing aapt. Please check aapt is present at /opt/android/platform-tools/aapt The path is correct, I checked twice and more times. -rwxrwxrwx 1 martin martin 3,5M 2010-12-08 10:41 /opt/android/platform-tools/aapt I can start aapt via console, the permissions are 777, I restarted eclipse, closed/reopened the project, restarted adb and finally my Ubuntu. Some ideas why this might happen only at one project? It seems that cleaning this specific project doesn't work but cleaning all

Changing application package name in custom Ant build step

本秂侑毒 提交于 2019-11-27 07:42:31
I'm trying to use a custom build to repackage my Android app. I want to create an internal beta version which I can install side-by-side with my production app. This answer looks like exactly what I need, however it doesn't seem to work. Here's the update to my build.xml: <target name="-package-resources" depends="-crunch" > <echo>Repackaging AndroidManifest.xml to ${package.manifest.name} ${out.absolute.dir}/${resource.package.file.name}</echo> <exec executable="${aapt}" failonerror="true"> <arg value="package" /> <arg value="-f" /> <arg value="--auto-add-overlay" /> <arg value="-M" /> <arg

Can someone actually explain the workings of Resource.Designer.cs?

99封情书 提交于 2019-11-27 07:24:38
问题 I routinely have problems during project builds where Resource.Designer gets generated but will no longer compile. My search engine shows that I'm not the only one that has this problem, but I've also not found any reliable "fix" for when it happens. For example, right now I have a project that works just fine, but if I add a reference to a NuGet library (that I created) then the app will no longer compile because of loads of errors in Resource.Designer.cs. On another project, I simply

How to preserve line breaks in xml <string> resources in Android?

故事扮演 提交于 2019-11-27 06:50:20
问题 I'm trying to use multi-line constants (defined in .xml file under /res/values/ folder), but it seems it's impossible to preserve line breaks there - they all being converted in spaces. I've tried to play with "formatted" attribute of strings (setting it both to "true" and "false", also I've tried wrapping strings in CDATA tags, like this: <string name="str1"> A B C </string> <string name="str2" formatted="true"> A B C </string> <string name="str3" formatted="false"> A B C </string> <string

Cannot build android project using Android Studio - Gradle 1.7

狂风中的少年 提交于 2019-11-27 04:29:12
问题 I'm having lots of problems with Gradle and Android Studio. Making changes in any resource in the project can randomly give an exception during compilation, this is what i see in Android Studio: Gradle: Error while executing aapt command Gradle: Execution failed for task ':App Code:processReleaseResources'. And this is what i see executing Gradle manually: "/Applications/Android Studio.app/sdk/tools/templates/gradle/wrapper/gradlew" asD Relying on packaging to define the extension of the main

What is AAPT (Android Asset Packaging Tool) and how does it work?

自闭症网瘾萝莉.ら 提交于 2019-11-27 04:12:54
问题 What does AAPT (Android Asset Packaging Tool) mean? How does it work? Can I ship the .so file of one application in the APK file of another application using AAPT? 回答1: AAPT allows you to view, create, and update ZIP-compatible archives (ZIP, JAR, and APK). It can also compile resources into binary assets. It is the base builder for Android applications. Of course you can ship .so files from an application, but if you want to use it, you will need reverse engineering plugins and these are not