aapt

Aapt tool chokes on a brand new Android project

别来无恙 提交于 2019-12-11 08:43:19
问题 This behavior has been reproduced on both a command-line and an eclipse new project. I have not touched a thing. aapt p -M AndroidManifest.xml -S res -v Locale/Vendor pairs: / / / / Files: drawable-hdpi/icon.png Src: res/drawable-hdpi/icon.png drawable-ldpi/icon.png Src: res/drawable-ldpi/icon.png drawable-mdpi/icon.png Src: res/drawable-mdpi/icon.png layout/main.xml Src: res/layout/main.xml values/strings.xml Src: res/values/strings.xml AndroidManifest.xml Src: AndroidManifest.xml

Getting the aapt2 parameters of a gradle build?

流过昼夜 提交于 2019-12-11 08:39:36
问题 I am interested in trying to compile an android application from the command line using aapt2. I am having a problem linking the constraint-layout library when I try to perform the aapt2 link command. This program builds successfully from Android studio/gradle. How can I make gradle command line invocation show me the aapt2 command it is running? For the record, I have tried to run ./gradlew assembleDebug --debug and all I can see is the calls to the aapt2-proto library. 回答1: Link The command

Gradle assembleDebug of an Android project fails with aapt error

时间秒杀一切 提交于 2019-12-10 20:16:14
问题 I'm trying to establish a gradle build for an Android library project, but currently the build fails during processDebugRes with an aapt error: :packageDebugAidl UP-TO-DATE :packageDebugRes UP-TO-DATE :prepareDebugDependencies UP-TO-DATE :processDebugManifest UP-TO-DATE :processDebugRes ERROR: Unknown option '--output-text-symbols' Android Asset Packaging Tool Usage: aapt l[ist] [-v] [-a] file.{zip,jar,apk} List contents of Zip-compatible archive. (...) :processDebugRes FAILED FAILURE: Build

Compiling error with Android Studio

孤者浪人 提交于 2019-12-10 13:13:23
问题 I'm trying compile a android application with Android Studio in linux. But I'm get the following errors: Error:org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/home/user/Android/Sdk/build-tools/19.1.0/aapt'' :app:mergeDebugResources FAILED Error:Execution failed for task ':app:mergeDebugResources'. Error: org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/home/user/Android/Sdk/build-tools/19.1.0/aapt'' How to

Android Gradle build Error:Ticks in transparent frame must be black or red

和自甴很熟 提交于 2019-12-10 10:03:24
问题 While trying to solve an Android Gradle build Error using a ImageMagick conversion I ran into a new Android error: Error:Ticks in transparent frame must be black or red. Error:Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'E:\Android\sdk-Android-Studio\build-tools\19.1.0\aapt.exe'' finished with non-zero exit value 42 What does it mean, and how do I solve it? 回答1: When you make a .9 picture, you should let it be nice. It

What limits are there on the number of Android resources?

烈酒焚心 提交于 2019-12-09 08:42:48
问题 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? 回答1: After a lot of experimenting, it seems that you can have up to 16 bits worth of resources (65,536

libpng error: Not a PNG file

↘锁芯ラ 提交于 2019-12-09 06:07:44
问题 I have tried several times to upgrade Android Studio build tools past 1.3.1, but I always end up with this libpng error. I solved one of the errors by completely removing a maven dependency (since the gradle console pointed to exactly where the problem file was), but now I am stuck with the same error and no pointer as to where the problem file is. Am I missing something? Here is the gradle console log: Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources]

Adobe Native Extensions: How do I package third party libraries (.jar) in a Android Native Extension for my Flex App?

耗尽温柔 提交于 2019-12-07 20:14:50
问题 This is not a duplicate question, I will post the links to the questions whose 'accepted' answers did not work for me. I have been trying to integrate a third party library for my flex android application for a few weeks now, with no success. Unfortunately there is no reliable end-to-end documentation for the same. What little Adobe has documented on the topic is insufficient to say the least. The tools I am using: ADT to package ANE from command line on Windows 7. Flash Builder to package

AAPT.EXE stopped running in eclipse(ANDROID)

帅比萌擦擦* 提交于 2019-12-07 15:02:35
问题 I am facing a problem with AAPT while executing an android project. I have done the following steps: Project > Clean and Window > Preferences > Android > Build > Normal However, it doesn't affect the project. The attributes are not generated in R.java file. 回答1: when I encounter that problem I just remove all the projects and then create a new one and copy again the files from new project. But first check the xml codes before copying. 回答2: Please try this answer. This issue sometimes comes

Error:android-apt-compiler: Cannot run program “sdk_path/build-tools/21.1.2/aapt”: java.io.IOException: error=13, Permission denied

浪子不回头ぞ 提交于 2019-12-07 06:02:27
I'm using Intellij IDEA 14.1.2 , java version " 1.6.0_45 " and OS Ubuntu 14.04 32bit , Showing this error during execution. Error:android-apt-compiler: Cannot run program "sdk_path/build-tools/21.1.2/aapt": java.io.IOException: error=13, Permission denied May I know you how can I solve this error? right click on 'aapt' file , properties -> permissions and check 'Allow executing file as program'. then close the window. in my case,after giving permission for 'aapt' file, i had to give the same permission for 'dx' and 'zipalign' files in the same directory (.../build-tools/21.1.2/) See if this