Fixed
Status Update
Comments
ni...@gmail.com <ni...@gmail.com> #2
I don't know if it's related, but for this same project I had reported bug 37117630 (for Proguard) and it's been fixed. I mention because it's also a shrinker+encoding+accents issue, maybe some information there is relevant to this issue. Thanks.
js...@google.com <js...@google.com>
mk...@google.com <mk...@google.com> #3
There was a problem with checksums that was fixed in 1.6.51 regarding synthesized classes. Can I ask you to try it out by adding the following to your build.gradle:
buildscript {
repositories {
maven {
url 'http://storage.googleapis.com/r8-releases/raw '
}
}
dependencies {
classpath 'com.android.tools:r8:1.6.51' // Must be before the Gradle Plugin for Android.
classpath 'com.android.tools.build:gradle:X.Y.Z' // Your current AGP version.
}
}
buildscript {
repositories {
maven {
url '
}
}
dependencies {
classpath 'com.android.tools:r8:1.6.51' // Must be before the Gradle Plugin for Android.
classpath 'com.android.tools.build:gradle:X.Y.Z' // Your current AGP version.
}
}
ni...@gmail.com <ni...@gmail.com> #4
With those changes it still fails.
Would it help if I upload the file app/build/intermediates/project_dex_archive/debug/out/ar/com/lichtmaier/antenas/Filtro$Companion$másDe1kW$1.dex mentioned in the stack trace?
Would it help if I upload the file app/build/intermediates/project_dex_archive/debug/out/ar/com/lichtmaier/antenas/Filtro$Companion$másDe1kW$1.dex mentioned in the stack trace?
ze...@google.com <ze...@google.com> #5
Thanks again for the report! It would be great if you could attach the .dex file. With that I should be able to verify the compiler version and hopefully reproduce the issue.
ni...@gmail.com <ni...@gmail.com> #6
Yes, of course. This is the file.
ze...@google.com <ze...@google.com> #7
Thanks Nico. The attached file is not a dex file produced by D8 and thus has no checksum information associated with it. The debug build using apply-changes assumes that when merging a build for apply changes all dex inputs to the merger must have checksum information which is not the case here, thus the error.
What is producing the Filtro$Companion$másDe1kW$1.dex file? Is this a externally built library with dex code that is being linked with your project?
Also, how are you initiating the run leading to the error? Are you pressing the "Apply Changes" button or the normal "Run" button.
What is producing the Filtro$Companion$másDe1kW$1.dex file? Is this a externally built library with dex code that is being linked with your project?
Also, how are you initiating the run leading to the error? Are you pressing the "Apply Changes" button or the normal "Run" button.
ni...@gmail.com <ni...@gmail.com> #8
I haven't used anything else other than Android Studio and the Android Gradle Plugin. I start a build with Ctrl-F9 or Shift-F10 and see this error.
ze...@google.com <ze...@google.com> #9
Thank you for the update.
My confusion was due to another issue where we apparently are not correctly marking the compiler information when producing incremental build artifacts (filed to fix this b/147249767 ).
Regarding the reported issue, I have a fix in the pipeline and will post an update once I have a version you can try out.
My confusion was due to another issue where we apparently are not correctly marking the compiler information when producing incremental build artifacts (filed to fix this
Regarding the reported issue, I have a fix in the pipeline and will post an update once I have a version you can try out.
ap...@google.com <ap...@google.com> #10
Project: r8
Branch: master
commit e9af2d26939a6e6d42fa57d4e2aed7863abcb9b7
Author: Ian Zerny <zerny@google.com>
Date: Tue Jan 07 09:11:28 2020
Support checksums for classes with non-ascii names.
Bug: 146597396
Change-Id: I1b677348720e58e2e4f142e79143581d84a9cb8c
M src/main/java/com/android/tools/r8/dex/ApplicationWriter.java
M src/main/java/com/android/tools/r8/dex/DexParser.java
A src/test/java/com/android/tools/r8/dexfilemerger/NonAsciiClassNameChecksumTest.java
https://r8-review.googlesource.com/47136
Branch: master
commit e9af2d26939a6e6d42fa57d4e2aed7863abcb9b7
Author: Ian Zerny <zerny@google.com>
Date: Tue Jan 07 09:11:28 2020
Support checksums for classes with non-ascii names.
Bug: 146597396
Change-Id: I1b677348720e58e2e4f142e79143581d84a9cb8c
M src/main/java/com/android/tools/r8/dex/ApplicationWriter.java
M src/main/java/com/android/tools/r8/dex/DexParser.java
A src/test/java/com/android/tools/r8/dexfilemerger/NonAsciiClassNameChecksumTest.java
ni...@gmail.com <ni...@gmail.com> #11
Oh... getASCIIString()... That's a function to never use (?)
Thanks! =)
Thanks! =)
ap...@google.com <ap...@google.com> #12
Project: r8
Branch: 1.6
commit dd96649e33a58dbe861c60c6b5331cb30ecdde07
Author: Ian Zerny <zerny@google.com>
Date: Tue Jan 07 21:03:43 2020
Version 1.6.56
Cherry pick: Support checksums for classes with non-ascii names.
CL:https://r8-review.googlesource.com/c/r8/+/47136
Bug: 146597396
Change-Id: Ie5d0320400a2dfac1532575a69c8c6e382ad7e10
M src/main/java/com/android/tools/r8/Version.java
M src/main/java/com/android/tools/r8/dex/ApplicationWriter.java
M src/main/java/com/android/tools/r8/dex/DexParser.java
https://r8-review.googlesource.com/47143
Branch: 1.6
commit dd96649e33a58dbe861c60c6b5331cb30ecdde07
Author: Ian Zerny <zerny@google.com>
Date: Tue Jan 07 21:03:43 2020
Version 1.6.56
Cherry pick: Support checksums for classes with non-ascii names.
CL:
Bug: 146597396
Change-Id: Ie5d0320400a2dfac1532575a69c8c6e382ad7e10
M src/main/java/com/android/tools/r8/Version.java
M src/main/java/com/android/tools/r8/dex/ApplicationWriter.java
M src/main/java/com/android/tools/r8/dex/DexParser.java
ze...@google.com <ze...@google.com> #13
Could you try out 1.6.56 by updating your top-level build.gradle file with:
buildscript {
repositories {
maven {
url 'http://storage.googleapis.com/r8-releases/raw '
}
}
dependencies {
classpath 'com.android.tools:r8:1.6.56' // Must be before the Gradle Plugin for Android.
classpath 'com.android.tools.build:gradle:X.Y.Z' // Your current AGP version.
}
}
I'd be happy to hear if this does or does not resolve you issue locally.
Thanks!
buildscript {
repositories {
maven {
url '
}
}
dependencies {
classpath 'com.android.tools:r8:1.6.56' // Must be before the Gradle Plugin for Android.
classpath 'com.android.tools.build:gradle:X.Y.Z' // Your current AGP version.
}
}
I'd be happy to hear if this does or does not resolve you issue locally.
Thanks!
ni...@gmail.com <ni...@gmail.com> #14
I don't see the error anymore so far.
Description
/home/nick/StudioProjects/Antenas/app/build/intermediates/project_dex_archive/debug/out/ar/com/lichtmaier/antenas/Filtro$Companion$másDe1kW$1.dex: D8: ar.com.lichtmaier.antenas.Filtro$Companion$másDe1kW$1 has no checksum information while checksum encoding is requested
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:132)
at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:119)
at com.android.build.gradle.internal.transforms.DexMergerTransformCallable.call(DexMergerTransformCallable.java:102)
at com.android.build.gradle.internal.tasks.DexMergingTaskRunnable.run(DexMergingTask.kt:445)
at com.android.build.gradle.internal.tasks.Workers$ActionFacade.run(Workers.kt:348)
at org.gradle.workers.internal.AdapterWorkAction.execute(AdapterWorkAction.java:50)
at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:47)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1$1.create(NoIsolationWorkerFactory.java:65)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1$1.create(NoIsolationWorkerFactory.java:61)
at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:98)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.execute(NoIsolationWorkerFactory.java:61)
at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44)
at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:56)
at org.gradle.workers.internal.DefaultWorkerExecutor$3.call(DefaultWorkerExecutor.java:215)
at org.gradle.workers.internal.DefaultWorkerExecutor$3.call(DefaultWorkerExecutor.java:210)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:215)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:164)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:131)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
at com.android.tools.r8.utils.O.a(:65)
at com.android.tools.r8.D8.run(:11)
at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:117)
... 34 more
Caused by: com.android.tools.r8.utils.b: Error: /home/nick/StudioProjects/Antenas/app/build/intermediates/project_dex_archive/debug/out/ar/com/lichtmaier/antenas/Filtro$Companion$másDe1kW$1.dex, ar.com.lichtmaier.antenas.Filtro$Companion$másDe1kW$1 has no checksum information while checksum encoding is requested
at com.android.tools.r8.utils.y0.a(:21)
at com.android.tools.r8.utils.O.a(:51)
... 36 more
Maybe this is because the use of accented characters, which worked fine before: This worked on 3.5