Android Question #R8 and Base64Convert

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Code:
            Dim Bmp      As Bitmap


            Bmp = mB64Image.DecodeToImage(BitmapString)


Finally tracked down where my dropdown routine is crashing and it turns out when I am calling DecodeToImage

getting this error

java.lang.RuntimeException: Method: _v5 not found in: R1.a

does Base64Convert need an update to work with #R8
 
Try to add:
Code:
AddProguardText(
-keep class com.simplysoftware.base64convert.base64convert {*;}
)

Thank you @Robert Valentino and @Erel for this post.
I've added the SS_Base64Convert.proguard file to the original post with the following line inserted into it.
B4X:
-keep class com.simplysoftware.base64convert.base64convert {*;}

I've tested the library with and without SS_Base64Convert.proguard file, it's working exactly as expected.
B4X:
Dexing and optimizing with R8    (6.98s)



Cheers...
 
Upvote 0
I've added the SS_Base64Convert.proguard file to the original post with the following line inserted into it.
This is a good solution. Another option is to recompile the library. The compiler will generate the proguard file automatically.
 
Upvote 0
Back
Top