react-native: Build fails when try to upgrade to 0.70+ version from 0.62.
New Version
0.71.7
Old Version
0.62.2
Build Target(s)
Android API 33
Output of react-native info
System: OS: macOS 13.2.1 CPU: (12) x64 Intel® Core™ i7-9750H CPU @ 2.60GHz Memory: 55.48 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 14.17.3 - /usr/local/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 6.14.13 - /usr/local/bin/npm Watchman: 2021.06.07.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: API Levels: 23, 28, 29, 30, 31, 33 Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0, 33.0.0 System Images: android-30 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 2021.2 AI-212.5712.43.2112.8609683 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 11.0.12 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.71.7 => 0.71.7 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Issue and Reproduction Steps
1: Task failed with an exception.
- Where: Build file ‘~/mobile-app/android/app/build.gradle’ line: 2
A problem occurred evaluating project ‘:app’.
Could not find method aaply() for arguments [{plugon=com.facebook.react}] on project ‘:app’ of type org.gradle.api.Project.
2: Task failed with an exception.
- What went wrong: A problem occurred configuring project ‘:app’.
com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (6 by maintainers)
I think the issue is very clear.
There is a typo in build.gradle’ line: 2 - aaply plugon should be changed to apply plugin