Could not compile Android after upgrading to 6.1.1
See original GitHub issueBug
Could not compile Android after upgrading to 6.1.1
a/path//node_modules/react-native-push-notification/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNReceivedMessageHandler.java:62: error: cannot find symbol
Integer visibilty = remoteNotification.getVisibility();
^
symbol: method getVisibility()
location: variable remoteNotification of type Notification
a/path//node_modules/react-native-push-notification/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNReceivedMessageHandler.java:78: error: cannot find symbol
Integer priority = remoteNotification.getNotificationPriority();
^
symbol: method getNotificationPriority()
location: variable remoteNotification of type Notification
Note: a/path//node_modules/react-native-push-notification/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationHelper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-push-notification:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 48s
at checkExecSyncError (child_process.js:629:11)
at execFileSync (child_process.js:647:13)
at runOnAllDevices (a/path//node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:39)
at buildAndRun (a/path//node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:179:41)
at then.result (a/path//node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:133:12)
react-native info
output:
info Fetching system and libraries information...
System:
OS: macOS Mojave 10.14.6
CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Memory: 152.17 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.16.0 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.10.3 - /usr/local/bin/npm
Watchman: 4.7.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 22, 23, 25, 26, 27, 28, 29
Build Tools: 28.0.3, 29.0.2
System Images: android-22 | Google APIs Intel x86 Atom_64, android-23 | Android TV Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-24 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
npmGlobalPackages:
react-native-create-library: 3.1.2
react-native-git-upgrade: 0.2.7
Library version: 6.1.1
Steps To Reproduce
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
How I resolved Jacoco plugin error after upgrading gradle to ...
So to fix the error in the application I found solution with these two line changes in application's build.gradle files. Replace 'jacoco-android ......
Read more >Minimum supported Gradle version is 6.1.1. Current version is ...
I faced this error. so I added the line below to build.gradle(project) file , dependency part:.
Read more >Upgrading your build from Gradle 6.x to the latest
The buildId field will not be populated by default to ensure that the produced metadata file remains unchanged when no build inputs are...
Read more >Android Gradle plugin release notes - Android Developers
If the specified plugin version has not been downloaded, Gradle downloads it the next time you build your project or click File >...
Read more >Build Error on Android App Bundle - Unity Forum
Can you try upgrading gradle version from 6.1.1 to a higher version. or. As per this, you need to specify in your gradle...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Old:
Changed to
And it resolved issue on 6.1.3
@j0nd0n7 How did you fix this? I’m having the same issue.