Fixed
Status Update
Comments
da...@google.com <da...@google.com> #2
Thanks for the report!
I found there is a typo in your configuration:
# keep names of exception classes
-keepname class * extends java.lang.Throwable
which should be "keepnames".
I found there is a typo in your configuration:
# keep names of exception classes
-keepname class * extends java.lang.Throwable
which should be "keepnames".
yi...@google.com <yi...@google.com>
an...@google.com <an...@google.com> #3
We had a similar issue previously: issue 113122600 .
But, I'm not able to repro the error. Without correcting the typo, I got:
$ java -jar build/libs/r8.jar --pg-conf ~/Downloads/proguard-rules.pro
Error in /usr/local/google/home/jsjeon/Downloads/proguard-rules.pro at line 2, column 6:
Expected [!]interface|@interface|class|enum
Compilation failed
which looks like the correct line/column numbers now.
But, I'm not able to repro the error. Without correcting the typo, I got:
$ java -jar build/libs/r8.jar --pg-conf ~/Downloads/proguard-rules.pro
Error in /usr/local/google/home/jsjeon/Downloads/proguard-rules.pro at line 2, column 6:
Expected [!]interface|@interface|class|enum
Compilation failed
which looks like the correct line/column numbers now.
je...@google.com <je...@google.com>
ga...@google.com <ga...@google.com> #4
Thanks!
I'm using at least two proguard files on input like
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
I will try to reproduce it on some small test project.
I'm using at least two proguard files on input like
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
I will try to reproduce it on some small test project.
ka...@google.com <ka...@google.com> #5
One more note, after fix the typo, it crashed again on this
...\lib-about\build\intermediates\consumer_proguard_file\avastRelease\mergeAvastReleaseConsumerProguardFiles\proguard.txt:7:7: D8: Expected [!]interface|@interface|class|enum
This file looks like
1| -optimizations code/removal/simple,code/removal/advanced
2| -keepattributes SourceFile,LineNumberTable
3| -dontwarn **
4|
5| -keep class com.google.android.gms.common.GoogleApiAvailability { *; }
6| -keepname class com.actionbarsherlock.app.ActionBar
7| -keepname class com.viewpagerindicator.PagerIndicator
8| -keepname class com.nineoldandroids.view.ViewHelper
9| -keepname class com.jakewharton.disklrucache.DiskLruCache
It is the same issue.
But, again it should be line 6 instead of 7.
And also it should prefer path \lib-about\proguard-rules.pro instead of build/intermediates right?
...\lib-about\build\intermediates\consumer_proguard_file\avastRelease\mergeAvastReleaseConsumerProguardFiles\proguard.txt:7:7: D8: Expected [!]interface|@interface|class|enum
This file looks like
1| -optimizations code/removal/simple,code/removal/advanced
2| -keepattributes SourceFile,LineNumberTable
3| -dontwarn **
4|
5| -keep class com.google.android.gms.common.GoogleApiAvailability { *; }
6| -keepname class com.actionbarsherlock.app.ActionBar
7| -keepname class com.viewpagerindicator.PagerIndicator
8| -keepname class com.nineoldandroids.view.ViewHelper
9| -keepname class com.jakewharton.disklrucache.DiskLruCache
It is the same issue.
But, again it should be line 6 instead of 7.
And also it should prefer path \lib-about\proguard-rules.pro instead of build/intermediates right?
ga...@google.com <ga...@google.com> #6
It looks like for every project module declared like
implementation project(':lib-about')
it displays errors inside of build folder instead of the project file.
But in main app module, it works correctly.
implementation project(':lib-about')
it displays errors inside of build folder instead of the project file.
But in main app module, it works correctly.
ka...@google.com <ka...@google.com> #7
And also would be great if it will display something like "unknown switch xyz" instead of Expected [!]interface|@interface|class|enu ;-)
Description
When there is an error with an AutoMigration (for example, when renaming a column without specifying the old and new column names) the error shown as an empty string in Android Studio.
Test environment:
Steps to reproduce:
Expected result:
Actual result:
Workaround: Run
./gradlew assembleDebug
from a terminal, then the full error message is shown.