-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling ProGuard results in "Could not find BuildConfig class" error when attempting to assembleRelease #21
Comments
try |
Seems it renames the BuildConfig Java class in ProGuard minification process. @todesignandconquer Can you try adding this line to your android/app/proguard-rules.pro Please note that This should hopefully resolve your issue. |
I am having the same issue I upgraded from RN 0.59.10 to RN 0.61.5 and now RNConfigReader is null works on iOS fine just an Android issue. I tried the above solution but it didn't work. Any other help with this would be much appreciated. The version of the library I am using is: |
Update: The issue is definitely with this library as I installed another and everything works fine now. |
@AdamLee321 which one did you install that fixes this? |
Hey, everyone. I wanted to introduce myself as a new maintainer for this project. More information about circumstances is available in my closing comment on #41, so please have a look there for some important information. That said, I'm just checking in on some existing issues and seeing if they're still relevant, as well as exploring how to proceed. |
React Native:
61
Android:
AndroidX
There seems to be an issue with assembling for release when using ProGuard:
In short, attempting to build via
./gradlew assembleRelease -x bundleReleaseJsAndAssets
builds the project just fine, but it results in RN Config Reader throwing the following error:The app assembles and works just fine using
assembleDebug
. All of the build variant BuildConfig files are properly automatically generated with the correct values.Config
returnsnull
.Any suggestions?
The text was updated successfully, but these errors were encountered: