Closed sanju280696 closed 2 years ago
Huh - interesting.
buildToolsVersion = "31.0.0"
I'm curious how build tools 31 can build with target / compile versions of 33 but I'll assume it works. I'd expect 33.0.0 there though
Likewise, your chosen workaround for https://github.com/facebook/react-native/issues/35210 is one of the more brittle choices, and it won't fix hermes issues (if you enable hermes). A cleaner solution is the exclusion filter style here https://github.com/facebook/react-native/issues/35210#issuecomment-1309813425
That said, I've never seen the error you describe and it seems to be lacking context, is that truly the entire error message?
You might try npx react-native-clean-project
to see if that clears things out and it works. If not, perhaps post the entire error output message?
What happened?
When i import mobileAds i found error like this
[SyntaxError: Unexpected token '{'. import call expects exactly one argument.] Error: Requiring unknown module "1284". If you are sure the module exists, try restarting Metro. You may also want to run
yarn
ornpm install
.I also i'm using javascript not typescript
Platforms
Only on Android
React Native Info
Are your using Typescript?
package.json
app.json
ios/Podfile
No response
android/build.gradle
android/app/build.gradle
android/settings.gradle
AndroidManifest.xml