xamarin / AndroidX

AndroidX bindings for .NET for Android
MIT License
173 stars 42 forks source link

com.android.tools.r8.ResourceException: com.android.tools.r8.internal.vc: I/O exception while reading #849

Closed Hari-Nikesh-R closed 4 months ago

Hari-Nikesh-R commented 4 months ago

Android application type

Not applicable

Affected platform version

3.2.1

Description

com.android.tools.r8.ResourceException: com.android.tools.r8.internal.vc: I/O exception while reading '/Users/harinikesh/StudioProjects/instore/app/build/intermediates/merged_java_res/kioskRelease/base.jar': /Users/harinikesh/StudioProjects/instore/app/build/intermediates/merged_java_res/kioskRelease/base.jar

I got this error while generating the release build with

release { shrinkResources true minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } I tried making the shrinkResources and minifyEnabled to false, Build got successful.

Relevant log output

com.android.tools.r8.ResourceException: com.android.tools.r8.internal.vc: I/O exception while reading '/Users/harinikesh/StudioProjects/instore/app/build/intermediates/merged_java_res/kioskRelease/base.jar': /Users/harinikesh/StudioProjects/instore/app/build/intermediates/merged_java_res/kioskRelease/base.jar
Hari-Nikesh-R commented 4 months ago

https://stackoverflow.com/questions/78026765/error-when-minifying-android-app-with-r8-after-upgrading-android-gradle-plugin-t

moljac commented 4 months ago

@Hari-Nikesh-R

Thanks for the feedback, but are you sure this is the right repo?

Output/log has nothing that resembles to dotnet/.NET.Android/Xamarin.Android

It is about gradle plugin.

Hari-Nikesh-R commented 4 months ago

Oops! sorry @moljac I just uploaded it in wrong repo. Thanks for the reponse.