aapt

AAPT error: resource drawable/… not found

梦想与她 提交于 2019-11-28 02:39:04
问题 After recently upgrading my android studio, I am not able to build my project anymore. Every time I execute a build, I am struck with the following error: error: resource drawable/splash_screen (aka com.whereisthemonkey.nowalism:drawable/splash_screen) not found. Message{kind=ERROR, text=error: resource drawable/splash_screen (aka com.whereisthemonkey.nowalism:drawable/splash_screen) not found., sources=[C:\Users\Lucas\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar

Cannot build android project using Android Studio - Gradle 1.7

北城余情 提交于 2019-11-27 21:01:59
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 artifact has been deprecated and is scheduled to be removed in Gradle 2.0 :App Code:preBuild UP-TO

aapt.exe has stopped working

孤者浪人 提交于 2019-11-27 18:01:28
问题 I recently transferred my workspace to another workstation then the error "aapt.exe has stopped working" showed. I have read some answers to uncheck Build Automatically, update my SDK, or make the Android Build Output to Normal then the crash would stop, well it didn't. I also deleted the .metadata of my workspace and basically set the preferences of Eclipse to default again. I copied aapt.exe from the other workstation and replaced mine, and this log showed up: [2013-05-21 14:36:42 - example

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

…衆ロ難τιáo~ 提交于 2019-11-27 17:41:16
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? MarcS 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 very recommended because of the complexity. I don't know anyone for Android, but there are a bunch of

9-patch image error in Android

瘦欲@ 提交于 2019-11-27 17:35:09
Whenever I try to add a 9-patch image to the \drawable folder in my project, I get the same error: ERROR: 9-patch image C:\...\res\drawable\appwidget.9.png malformed. Frame pixels must be either solid or transparent (not intermediate alphas). Found at pixel #3 along top edge. Failure processing PNG image C:\...\res\drawable\appwidget.9.png The weird thing in this example is that I've got this image from the "android-g1-icon" images found in the SDK resources, so it is supposed to be OK. The same happened with any 9-patch image I've tried so far. What could be wrong? I have encountered with

AAPT2 compile failed: invalid dimen on Android 3.0 Canary 1

最后都变了- 提交于 2019-11-27 17:09:10
I am playing around with Instant Apps for Android.I installed all the correct packages and tired to create new Application with Instant App support (checked the box for Instant App when crating new application). The problem is that I always run into a problem with compile tools. Does anybody else have this problem and was able to find any workaround. My environment: Android Studio 3.0 Canary 1 Compile SDK: 25 Build Tools: "26.0.0 rc2" Gradle plugin:3.0.0-alpha1 Gradle: tried both gradle-4.0-milestone1 and 2 Java 1.8/1.7 OS: tried both Windows 10 and Linux Ubuntu 16.4 LTS The error: Error: java

“aapt” IOException error=2, No such file or directory\" why can't I build my gradle on jenkins?

柔情痞子 提交于 2019-11-27 16:57:30
I have a little problem. The Problem: I am trying to build a gradle of my Android Project on Jenkins and now I am standing on this problem i can't resolve. During the Building I have this Error message: :Client:mergeDebugResources /var/lib/jenkins/workspace/LMA-Client/Client/build/exploded-aar/com.google.android.gms/play-services/3.1.59/res/drawable-hdpi/common_signin_btn_text_focus_light.9.png: Error: Cannot run program "/opt/android-sdk/build-tools/19.0.1/aapt": java.io.IOException: error=2, No such file or directory :Client:mergeDebugResources FAILED You can imagine that this aapt... yep

Documentation for aapt element in Ant script

二次信任 提交于 2019-11-27 14:16:25
问题 I'm working on some Ant scripts for an Android build system and have come across an element to call aapt. I have seen lots of examples with exec executable="${aapt}" but the ones that come out of the main_rules.xml file use a different format <aapt executable="${aapt}" command="package" debug="${build.packaging.debug}" manifest="AndroidManifest.xml" assets="${asset.absolute.dir}" androidjar="${android.jar}" apkfolder="${out.absolute.dir}" resourcefilename="${resource.package.file.name}"

aapt.exe crashes when I try to export my Android application from Eclipse

两盒软妹~` 提交于 2019-11-27 12:27:33
问题 Since I updated two days ago my Android SDK to version API 14 I'm getting troubles using Eclipse Helios on my Windows 7 x64 laptop. When I try to export a project everything is ok until I get to press the "finish" button: then a popup appears saying "aapt.exe has stopped working" and I can't get my signed apk; the project doesn't return errors and compiles as usual. I googled to find a solution but nothing of the solutions i found worked: I cleaned the project (Project>Clean) I disabled the

ADT 22 - missing aapt.exe after upgrading

荒凉一梦 提交于 2019-11-27 11:47:14
问题 At work, I need to use maven with Android. maven uses appt.exe for its own compiling process. ever since I've upgraded to ADT 22 , maven says it can't find this file, and it's right- the file is gone from "...\platform-tools" . I've tried to uninstall&re-install the sdk manager and the ADT , but it didn't help. What can I do to fix this ? Why is it gone? EDIT: For now, I use a workaround of copying (without replacing) all of the old "platform-tools" files into the current one. It seems to