Giter Site home page Giter Site logo

Comments (16)

rburgst avatar rburgst commented on June 26, 2024 7

ensure that you add your BuildConfig to your proguard rules. Took me hours to figure out. IMHO the README needs a major makeover. This should be pretty much on top it.

In your proguard-rules.pro add

-keep class my.app.package.BuildConfig { *; }

Obviously you need to adapt the package to your actual app package name

from react-native-config.

fikriwebdev avatar fikriwebdev commented on June 26, 2024 2

-keep class my.app.package.BuildConfig { *; }

Thankyou! Its working after add this line pro-guard

from react-native-config.

StefanWallin avatar StefanWallin commented on June 26, 2024 1

ensure that you add your BuildConfig to your proguard rules. Took me hours to figure out. IMHO the README needs a major makeover. This should be pretty much on top it.

In your proguard-rules.pro add

-keep class my.app.package.BuildConfig { *; }

I had done the above, but it still didn't work. Thank you @rburgst for writing also this, which I had missed!:

Obviously you need to adapt the package to your actual app package name

With that it works properly. As stated in another issue, the readme needs an overhaul!

from react-native-config.

xlcrr avatar xlcrr commented on June 26, 2024

Is it working for you in dev mode?
I am unable to get it working with new RN project

from react-native-config.

eakenbor avatar eakenbor commented on June 26, 2024

xlcrr I had to upgrade my RN to 0.72.3 the latest version.

from react-native-config.

johnfrades avatar johnfrades commented on June 26, 2024

It's working for you now @eakenbor ?

from react-native-config.

xlcrr avatar xlcrr commented on June 26, 2024

xlcrr I had to upgrade my RN to 0.72.3 the latest version.

Thanks for the reply. I am using 0.72.3 and its not working out of the box on android, will post my solution when I find it

from react-native-config.

xlcrr avatar xlcrr commented on June 26, 2024

Thanks for the tip but updating proguard-rules.pro did not work for me

If anyone would like to help collaborate on an open source project with latest versions of everything I would really love some help here!

https://github.com/OpenLitterMap/react-native

Happy to post the solution when I get it

from react-native-config.

xlcrr avatar xlcrr commented on June 26, 2024

Latest minor react-native release fixed it for me, 0.72.3 -> 0.72.4

from react-native-config.

gravitypersists avatar gravitypersists commented on June 26, 2024

No idea why this fixed it for me but I was running through an npm script that was also doing ./gradlew clean which stopped this from working properly. Removing that fixed the issue for me.

from react-native-config.

Sahil6458 avatar Sahil6458 commented on June 26, 2024

#541 (comment)

from react-native-config.

natemartins avatar natemartins commented on June 26, 2024

#541 (comment)

This did not work for me

from react-native-config.

natemartins avatar natemartins commented on June 26, 2024

Latest minor react-native release fixed it for me, 0.72.3 -> 0.72.4

I have upgraded to 0.72.4 and 0.72.5 but it still isn't working for me.

from react-native-config.

FranciscoPDNeto avatar FranciscoPDNeto commented on June 26, 2024

Hello, I was trying to update from react-native 0.71.11 to 0.72.6 and I started to face the same issue, any news on that?

from react-native-config.

FranciscoPDNeto avatar FranciscoPDNeto commented on June 26, 2024

After including the ENVFILE env var right before running react-native it worked, it seems react is trying to make some validation with build gradle before ./gradlew install, and then the env file was not injected

from react-native-config.

Roasted-Peanut avatar Roasted-Peanut commented on June 26, 2024

#777 (comment)

I have problem same. Someone help me!

from react-native-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.