question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

amazon-cognito-identity-js Does not build on Android against React Native 0.63.3

See original GitHub issue

Describe the bug Task :amazon-cognito-identity-js:compileDebugJavaWithJavac FAILED

To Reproduce Steps to reproduce the behavior:

Create a new RN project on RN 0.63.3 version; Install amazon-cognito-identity-js & @aws-amplify/pushnotification package; Start dev build react-native run-android

Expected behavior dev bundling should complete and app should launch

Code Snippet yarn run v1.22.4 $ react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using “–no-jetifier” flag. Jetifier found 1281 file(s) to forward-jetify. Using 8 workers… info JS server already running. info Installing the app…

Configure project :app Reading env from: .env Unable to read signing.debug.properties…using default signing configuration Unable to read signing.release.properties…using default signing configuration

Configure project :react-native-firebase_app :react-native-firebase_app package.json found at D:\Byteridge\PROJ\iuiw-ui-react\node_modules@react-native-firebase\app\package.json :react-native-firebase_app:firebase.bom using default value: 25.7.0 :react-native-firebase_app:play.play-services-auth using default value: 16.0.1 :react-native-firebase_app package.json found at D:\Byteridge\PROJ\iuiw-ui-react\node_modules@react-native-firebase\app\package.json :react-native-firebase_app:version set from package.json: 8.4.5 (8,4,5 - 8004005) :react-native-firebase_app:android.compileSdk using custom value: 30 :react-native-firebase_app:android.targetSdk using custom value: 30 :react-native-firebase_app:android.minSdk using custom value: 21 :react-native-firebase_app:reactNativeAndroidDir D:\Byteridge\PROJ\iuiw-ui-react\node_modules\react-native\android

Configure project :react-native-firebase_crashlytics :react-native-firebase_crashlytics package.json found at D:\Byteridge\PROJ\iuiw-ui-react\node_modules@react-native-firebase\crashlytics\package.json :react-native-firebase_app package.json found at D:\Byteridge\PROJ\iuiw-ui-react\node_modules@react-native-firebase\app\package.json :react-native-firebase_crashlytics:firebase.bom using default value: 25.7.0 :react-native-firebase_crashlytics package.json found at D:\Byteridge\PROJ\iuiw-ui-react\node_modules@react-native-firebase\crashlytics\package.json :react-native-firebase_crashlytics:version set from package.json: 8.4.9 (8,4,9 - 8004009) :react-native-firebase_crashlytics:android.compileSdk using custom value: 30 :react-native-firebase_crashlytics:android.targetSdk using custom value: 30 :react-native-firebase_crashlytics:android.minSdk using custom value: 21 :react-native-firebase_crashlytics:reactNativeAndroidDir D:\Byteridge\PROJ\iuiw-ui-react\node_modules\react-native\android

Task :amazon-cognito-identity-js:compileDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use ‘–warning-mode all’ to show the individual deprecation warnings. See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings 9 actionable tasks: 9 executed

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:amazon-cognito-identity-js:compileDebugJavaWithJavac’.

Could not create service of type DefaultGeneralCompileCaches using GradleScopeCompileServices.createGeneralCompileCaches().

  • 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 8s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Screenshots

What is Configured?

aws push notifications & analytics

Smartphone (please complete the following information):

  • Device: [e.g. Vivo 1803]
  • OS: [e.g. Android 8.1]
  • Version [e.g. 22]

Additional context

It works perfectly if we remove these two packages

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
galgordcommented, Sep 21, 2021

Can we please re-open this issue? It is still not working for me. I have a very simple app and am trying to run and android but cannot.

I get the following error:

Task :amazon-cognito-identity-js:compileDebugJavaWithJavac FAILED /Users/galgordon/dev/React Native/pets/node_modules/amazon-cognito-identity-js/android/src/main/java/com/amazonaws/RNAWSCognitoModule.java:48: error: cannot find symbol @ReactMethod(isBlockingSynchronousMethod = true) ^ symbol: method isBlockingSynchronousMethod() location: @interface ReactMethod 1 error

1reaction
thenderson55commented, Oct 13, 2020

Have you tried deleting node_modules and cleaning all the caches then run with sudo?

sudo react-native run-android

Read more comments on GitHub >

github_iconTop Results From Across the Web

Execution failed for task ':amazon-cognito-identity-js ...
I just tried to build my react native app as usual but it won't build due to this problem which I think is...
Read more >
execution failed for task ':amazon-cognito-identity-js ... - You.com
Hi guys,. When trying to run my react native app on android, I get this error: FAILURE: Build failed with an exception. What...
Read more >
amazon-cognito-identity-js | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
unimodules - Bountysource
the relative path "../unimodules-core.gradle" from this node_modules/@unimodules/react-native-adapter/android/build.gradle does not exist. @unimodules | - ...
Read more >
Building a React Native App: Part V, Authentication Using ...
This file will return a CognitoUserPool object for my specific user pool. import {CognitoUserPool} from 'amazon-cognito-identity-js'; import {USER_POOL_ID, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found