myussufz / react-native-ipay88-sdk

React Native for integrating with iPay88 payment gateway's mobile SDK
18 stars 17 forks source link

Building the APK results in an error. It works find in debug mode #14

Open Pirsanth opened 4 years ago

Pirsanth commented 4 years ago

Task :app:prepareLintJar UP-TO-DATE Task :app:generateReleaseSources Task :ipay88-sdk:compileReleaseRenderscript NO-SOURCE Task :ipay88-sdk:generateReleaseBuildConfig Task :ipay88-sdk:generateReleaseResValues Task :ipay88-sdk:generateReleaseResources Task :ipay88-sdk:packageReleaseResources Task :ipay88-sdk:generateReleaseRFile Task :ipay88-sdk:prepareLintJar UP-TO-DATE Task :ipay88-sdk:generateReleaseSources Task :ipay88-sdk:javaPreCompileRelease

Task :ipay88-sdk:compileReleaseJavaWithJavac FAILED /Users/olav/Documents/kibo-android/node_modules/ipay88-sdk/android/src/main/java/com/ipay88/IPay88Module.java:7: error: package android.support.annotation does not exist import android.support.annotation.Nullable; ^ /Users/olav/Documents/kibo-android/node_modules/ipay88-sdk/android/src/main/java/com/ipay88/IPay88Module.java:106: error: cannot find symbol static void sendEvent(ReactContext reactContext, String eventName, @Nullable WritableMap params) { ^ symbol: class Nullable location: class IPay88Module 2 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 2m 9s

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings 41 actionable tasks: 37 executed, 4 up-to-date An general error occured: exec: /Users/olav/Documents/kibo-android/node_modules/ipay88-sdk/android/src/main/java/com/ipay88/IPay88Module.java:7: error: package android.support.annotation does not exist import android.support.annotation.Nullable; ^ /Users/olav/Documents/kibo-android/node_modules/ipay88-sdk/android/src/main/java/com/ipay88/IPay88Module.java:106: error: cannot find symbol static void sendEvent(ReactContext reactContext, String eventName, @Nullable WritableMap params) { ^ symbol: class Nullable location: class IPay88Module 2 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 2m 9s

15110011 commented 4 years ago

Me too Did you solve it??

chinloongtan commented 4 years ago
yarn add -D jetifier
npx jetifier