payu-intrepos / payu-non-seamless-react

Non-Seamless SDK for React Native
5 stars 9 forks source link

PayUBizSdkModule.java:408: error: cannot find symbol BuildConfig.VERSION_NAME #6

Open mohamedali-inno opened 3 years ago

mohamedali-inno commented 3 years ago

Hi,

I did react native upgrade to version 0.64.1, which has upgraded the gradle to com.android.tools.build:gradle:4.1.0.

After that i m getting this issue when I build the project.

Task :payu-non-seam-less-react:compileDebugJavaWithJavac FAILED /Users/ali/Documents/ALI/2021/NewRequirements/ForRelease/FavMall/node_modules/payu-non-seam-less-react/android/src/main/java/com/payubiz/PayUBizSdkModule.java:408: error: cannot find symbol jsonObject.put(PayuConstants.VERSION_KEY, BuildConfig.VERSION_NAME); ^ symbol: variable VERSION_NAME location: class BuildConfig Note: /Users/ali/Documents/ALI/2021/NewRequirements/ForRelease/FavMall/node_modules/payu-non-seam-less-react/android/src/main/java/com/payubiz/PayUBizSdkModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/ali/Documents/ALI/2021/NewRequirements/ForRelease/FavMall/node_modules/payu-non-seam-less-react/android/src/main/java/com/payubiz/PayUBizSdkModule.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error