-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
[🐛] No signature of method: java.lang.Boolean.getStringValue() under android v14.1.0+ #620
Comments
Using the expo plugin as instructed in the doc, I also encounter the same error even for 14.0.1.
|
Same issue for me with expo 51 and I must add a duplicated app.json config like this to fix it : {
"expo": {
"name": "My app",
"slug": "my-slug"
},
"react-native-google-mobile-ads": {
"android_app_id": "ca-app-pub-xxx",
"ios_app_id": "ca-app-pub-xxx",
"user_tracking_usage_description": "My message",
"delay_app_measurement_init": true,
"sk_ad_network_items": []
} |
Same issue
|
caused by the above changes -- @dylancom can this support be re-introduced? in the meantime, if anyone needs it here's a
|
I see different types of errors coming up here. Some people seem to have forgotten to switch over to using the new "Expo Config Plugin".
@DoctorJohn Can you also have a look? |
for what it's worth, our app is using the Expo Config Plugin within our for some unrelated reasons (other Config Plugins we apply conditionally), we need to keep the dynamic config and a static with the workaround patch above reverting the p.s. happy to spin up a minimal reproduction if that helps! |
|
@jpdriver it would be nice if you could share your |
minimal reproduction of the bug is here https://github.com/jpdriver/expo-google-ads-repro checkout this repo and run steps taken can be seen in the commits to |
Thank you very much @jpdriver. I just identified the issue and I'm working on a PR for it. I will post an explanaiting in a bit. |
@dylancom (cc: @mikehardy) unfortunately we need to discuss the configuration workflows again. The expo config plugin always works as expected (even in the repro provided in this issue), but the bailout conditions for the custom config workflow keep causing trouble. Originally we bailed out of the custom config workflow if the To address #614, we adjusted the bailout condition. Currently we intent to bail out when the project is a managed expo app by checking for the non-existance of In a nutshell: The error reported in this issue happens, because Our current strategy is to bail out of the custom config workflow when a managed expo project is detected (i.e. no To address this issue we have a few limited options:
I still believe (1) would save us a lot of trouble, though we discussed this before and Mike was in favor of at least trying to keep the custom config workflow. For now I will create a hotfix PR that fixes the relative paths mentioned above and basically implements option (2). This will make sure all correctly configured projects can build while we figure out how to proceed. *You might be wondering how I did not realize this was broken when I claimed my PRs work with EAS builds. The reason is simple: I tested the EAS builds with a correctly configured expo project that has both |
i think we might be on different pages 😅 this is a Gradle build issue introduced because we no longer read either again, with a simple patch which re-introduces support for both the config plugin is working perfectly even though this is a Bare project; and i can see the what i'm trying to ask is if we can revert just that one app-json.gradle file so that we can fill i don't believe there needs to be any change to detection logic, the config plugin itself, or really anywhere else in the lib 😅 |
@jpdriver You're correct that the expo config plugin does not require any changes. It already fully supports app.json, app.config.js, and app.config.ts. The issue here is caused by build.gradle. The build.gradle file is used by configuration workflow that is fully separate from the expo config plugin and therefore does not need to be able to handle app.config.js or app.config.ts at all. However, build.gradle interferes with the expo config plugin during build time. To stop this interference we have bailout conditions in place which are supposed to detect when the expo config plugin is used. These conditions are faulty and my super long comment outlines the second attempt to fix them. The solution you propose is a collaborative approach which could work for android but is merely a workaround for the underlying concerns and needs extra consideration, namely:
While your patch (which I fully appreciate!!) avoid the error in this issue it would result in the following:
|
i tried having both i'm not sure if that's related to this lib or just something else with our app though so please take that with a pinch of salt.. the only other thing i can think to suggest is maybe considering whether for projects which:-
if these were correctly detected as Bare projects, would that work? 🤔 |
This is could be because the admob app ids in your app.config.js are not valid. (you can try to use testids to make it work :) )
Unfortunately bare react native project can also install and work with that package (that would result in the following issue where someone is using another arbitrary expo package in their bare react native app #614)
Unfortunately every react native project has Things I tried so far:
@jpdriver Feel free to take a look at the PR I just created. It would be very helpful if you could verify whether it works with your app. |
🎉 This issue has been resolved in version 14.2.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
no longer seeing this issue with h/t @DoctorJohn @dylancom |
@dylancom if we're fine with |
Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
Thank you for your contributions. |
What happened?
I've been using this library for a while (thank you!) and recently migrated to the expo config, which worked well under 14.0.1, then I upgraded to 14.2.1 and I've started getting the compilation under android failing with:
I've tried older versions and it also happened with 14.1.0 and 14.2.0. 14.0.1 is the latest that works, without doing any change in the config or code other than changing the version in the package.json. It both fails in local and EAS compilations
Ios is working (compiling through EAS, I cannot do it locally)
Platforms
Only on Android
React Native Info
The text was updated successfully, but these errors were encountered: