Fixed
Status Update
Comments
vi...@google.com <vi...@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".
tn...@google.com <tn...@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.
Description
```
context.obtainStyledAttributes(attrs, styleable).also{
//some code using it value
}.recycle()
```
but there is none when I write this verbose version:
```
// Verbose version
val typedArray = context.obtainStyledAttributes(attrs, styleable)
// some code using typedArray value
typedArray.recycle()
```
I believe the warning is incorrectly reported for the concise version of the code as the recycle method is called correctly. Can you please fix this issue?
There is even similar question on Stackoverflow here:
Thank you!
Build: AI-191.8026.42.35.5781497, 201908052154,
AI-191.8026.42.35.5781497, JRE 1.8.0_202-release-1483-b03x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1280x720
AS: 3.5 RC 3; Android Gradle Plugin: 3.4.2; Gradle: 5.1.1; NDK: from local.properties: 20.0.5594570, latest from SDK: 20.0.5594570; LLDB: LLDB 3.1 (revision: 3.1.4508709); CMake: from local.properties: (not specified), latest from SDK: 3.10.2