Closed lottemarines closed 2 years ago
Hi, You need to use Gradle version 7+ and compile sdk version 31+. Can you upgrade your gradle versions and compile sdk version then retry?
Yep - your report was complete enough we were able to provide help immediately, this is actually a rare thing (good bug reports!) in open-source-land so kudos for that, seriously :-)
I'm going to close this presumptively as we know it will compile, and that error message was explicit:
> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
After rebuilding with compileSdkVersion 31 you should be set. We can always reopen if not, and comment freely either way
Issue
Hi guys!
Only Android build fails... Could you give me some advice?
=> it works.
=>error code is bellow.
Project Files
android/build.gradle
android/app/build.gradle
AndroidManifest.xml
Javascript
Click To Expand
#### `package.json`: ```json # N/A ``` #### `admob.json`: ```json # N/A ```
iOS
Click To Expand
#### `ios/Podfile`: ```ruby # N/A ``` --- ### Android
---
## Environment
---
- 👉 Check out [`Invertase`](https://twitter.com/invertaseio) on Twitter for updates on the library.
Click To Expand
#### `android/build.gradle`: ```groovy // N/A ``` #### `android/app/build.gradle`: ```groovy // N/A ``` #### `android/settings.gradle`: ```groovy // N/A ``` #### `AndroidManifest.xml`: ```xml ```
Click To Expand
**`react-native info` output:** ``` OUTPUT GOES HERE ``` - **Platform that you're experiencing the issue on**: - [ ] iOS - [ ] Android - [ ] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] Both - **Are you using `TypeScript`?** - `Y/N` & `VERSION`