Status Update
Comments
vs...@google.com <vs...@google.com>
xa...@android.com <xa...@android.com>
xa...@android.com <xa...@android.com> #2
That seems like a big limitation because it means that to get lint checks on them you need to add them to the base but then they are also packaged with the base instead of the dynamic-features. Can we attempt to fix this for 7.1?
yc...@gmail.com <yc...@gmail.com> #3
Ok, yes, I can attempt to fix for 7.1.
hu...@gmail.com <hu...@gmail.com> #6
xa...@android.com <xa...@android.com> #7
+1 on the issue (don't see where to star)
je...@google.com <je...@google.com> #8
The star is to the left of the bug id on the header line which has the issue id and the issue synopsis.
je...@google.com <je...@google.com> #9
So are you all gonna be able to help me or not? I have all the emails that
this person uses or used to hack and stalk me. The lives of my kids and I
are in danger and this person has harassed and even installed apps on my
phone which i can not delete. Or will I have to close and delete my account
with google and switch to an Icloud account? Ive never had these issue with
google but now it seems yall cant do anything to fix my account back to how
I use to have it before all these developer tool and setting were installed
with my permission from this person!!!!!
On Fri, Oct 15, 2021 at 11:23 AM <buganizer-system@google.com> wrote:
this person uses or used to hack and stalk me. The lives of my kids and I
are in danger and this person has harassed and even installed apps on my
phone which i can not delete. Or will I have to close and delete my account
with google and switch to an Icloud account? Ive never had these issue with
google but now it seems yall cant do anything to fix my account back to how
I use to have it before all these developer tool and setting were installed
with my permission from this person!!!!!
On Fri, Oct 15, 2021 at 11:23 AM <buganizer-system@google.com> wrote:
yc...@gmail.com <yc...@gmail.com> #10
Hmm, this feature doesn't seem to be available in the 1.1 beta. Will it be available in the final 1.1 release?
[Deleted User] <[Deleted User]> #11
Can someone answer the above question? I needs this fix.
je...@google.com <je...@google.com> #12
it is in 1.1, well unless there is an issue, you still see your non 9 patch being crunched ?
yo...@gmail.com <yo...@gmail.com> #13
Do I understand correctly that the fix isn't "aapt won't make PNGs bigger anymore" but "if you think your PNGs are already good, you can now disable crunching across your entire project"?
je...@google.com <je...@google.com> #14
that's correct, the settings will bypass the crunching all together for non
9 patch PNGs.
9 patch PNGs.
hu...@gmail.com <hu...@gmail.com> #15
Unfortunately, this is still not working, as of Android Studio 1.1.0.
I've added this line to my main project build.gradle file:
aaptOptions {
cruncherEnabled = false
}
But this results in this error on Gradle sync:
Error:(24, 0) No such property: cruncherEnabled for class: com.android.build.gradle.internal.dsl.AaptOptions_Decorated
Is there a specific place I should be using this command?
I've added this line to my main project build.gradle file:
aaptOptions {
cruncherEnabled = false
}
But this results in this error on Gradle sync:
Error:(24, 0) No such property: cruncherEnabled for class: com.android.build.gradle.internal.dsl.AaptOptions_Decorated
Is there a specific place I should be using this command?
je...@google.com <je...@google.com> #16
can you include your build.gradle.
hu...@gmail.com <hu...@gmail.com> #17
Sure, here is the build.gradle file.
ja...@gmail.com <ja...@gmail.com> #18
If option does not work, make sure you require com.android.tools.build:grade:1.1.3 . I had 1.1 dans didn't understand why it wasn't recognised.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.3'
}
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.3'
}
}
ch...@beyls.net <ch...@beyls.net> #19
I still have the same issue with the latest build tools coming with Android Studio 2.2 and Android Nougat. My APK file is smaller when I disable the cruncher. The cruncher should compare original and optimized file sizes and discard the optimized file if it's bigger than the original one.
[Deleted User] <[Deleted User]> #20
I added the cruncher options to build.gradle file but still having the same error, any body figured how to solve it
ci...@gmail.com <ci...@gmail.com> #21
For me the issue is that I get an error when building my APK:
Exception while processing task java.lang.RuntimeException: AAPT process not ready to receive commands
Thread(png-cruncher_2): Stream closed
java.io.IOException: Stream closed
at java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:433)
at java.io.OutputStream.write(OutputStream.java:116)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:297)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at com.android.builder.png.AaptProcess.shutdown(AaptProcess.java:143)
at com.android.builder.png.QueuedCruncher$1.destruction(QueuedCruncher.java:144)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:245)
at java.lang.Thread.run(Thread.java:748)
Process list not empty
Thread(png-cruncher_2): queue not cleaned
while shutting downpng-cruncher_2
java.io.IOException: Stream closed
at java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:433)
at java.io.OutputStream.write(OutputStream.java:116)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:297)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at com.android.builder.png.AaptProcess.shutdown(AaptProcess.java:143)
at com.android.builder.png.QueuedCruncher$1.shutdown(QueuedCruncher.java:161)
at com.android.builder.tasks.WorkQueue.shutdown(WorkQueue.java:169)
at com.android.builder.png.QueuedCruncher.end(QueuedCruncher.java:309)
at com.android.builder.internal.aapt.v1.AaptV1.lambda$compile$0(AaptV1.java:430)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Error: java.lang.RuntimeException: Crunching Cruncher abc_ab_share_pack_mtrl_alpha.9.png failed, see logs
:mergeDevDebugResources FAILED
Exception while processing task java.lang.RuntimeException: AAPT process not ready to receive commands
Thread(png-cruncher_2): Stream closed
java.io.IOException: Stream closed
at java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:433)
at java.io.OutputStream.write(OutputStream.java:116)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:297)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at com.android.builder.png.AaptProcess.shutdown(AaptProcess.java:143)
at com.android.builder.png.QueuedCruncher$1.destruction(QueuedCruncher.java:144)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:245)
at java.lang.Thread.run(Thread.java:748)
Process list not empty
Thread(png-cruncher_2): queue not cleaned
while shutting downpng-cruncher_2
java.io.IOException: Stream closed
at java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:433)
at java.io.OutputStream.write(OutputStream.java:116)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:297)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at com.android.builder.png.AaptProcess.shutdown(AaptProcess.java:143)
at com.android.builder.png.QueuedCruncher$1.shutdown(QueuedCruncher.java:161)
at com.android.builder.tasks.WorkQueue.shutdown(WorkQueue.java:169)
at com.android.builder.png.QueuedCruncher.end(QueuedCruncher.java:309)
at com.android.builder.internal.aapt.v1.AaptV1.lambda$compile$0(AaptV1.java:430)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Error: java.lang.RuntimeException: Crunching Cruncher abc_ab_share_pack_mtrl_alpha.9.png failed, see logs
:mergeDevDebugResources FAILED
Description
SDK tools version: 22.3
Eclipse version: 20130225-0426
ADT plug-in version: 22.3.0.v201310242005-887826
STEPS TO REPRODUCE:
1. Use before-crunch.png file from attachment in an Android project
2. Export APK from Eclipse
EXPECTED RESULTS:
inside APK, PNG file must not become bigger
OBSERVED RESULTS:
inside APK, PNG file size increased (check after-crunch.png, PLTE chunk added)
Fix is very simple: after crunch, aapt should check whether it really crunched an image.