Amplify-js: Task :@aws-amplify_pushnotification:verifyReleaseResources FAILED

Created on 2 Jun 2019  路  4Comments  路  Source: aws-amplify/amplify-js

Describe the bug
following steps in the link https://aws-amplify.github.io/docs/js/push-notifications#configure-your-app to create a react-native app and firebase app to test android push notification.

it seems that the document is out of sync, the last step is "expo start". however, the first step is
"react-native init myapp".

I tried to run ./gradlew assembleRelease,
got error:

Task :@aws-amplify_pushnotification:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':@aws-amplify_pushnotification:verifyReleaseResources'.
    > java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
    /Users/davidwei/pushandroid/node_modules/@aws-amplify/pushnotification/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
    /Users/davidwei/pushandroid/node_modules/@aws-amplify/pushnotification/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
    /Users/davidwei/pushandroid/node_modules/@aws-amplify/pushnotification/android/build/intermediates/res/merged/release/values/values.xml:2723: error: resource android:attr/fontVariationSettings not found.
    /Users/davidwei/pushandroid/node_modules/@aws-amplify/pushnotification/android/build/intermediates/res/merged/release/values/values.xml:2724: error: resource android:attr/ttcIndex not found.
    error: failed linking references.
Push Notifications to-be-reproduced

Most helpful comment

Solved just now
react-native run-android --variant=release
./gradlew app:installRelease

Worked very well

All 4 comments

Solved just now
react-native run-android --variant=release
./gradlew app:installRelease

Worked very well

tried to run react-native run-android --variant=release
I got error :
FAILURE: Build failed with an exception.

  • What went wrong:
    Task 'installRelease' not found in project ':app'. Some candidates are: 'uninstallRelease'.

added keystore, works now. thanks!

So this simply doesn't work for running in debug on simulator?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shinnapatthesix picture shinnapatthesix  路  3Comments

karlmosenbacher picture karlmosenbacher  路  3Comments

cgarvis picture cgarvis  路  3Comments

rygo6 picture rygo6  路  3Comments

oste picture oste  路  3Comments