0

I am using react native (v0.71.4) to create a java (v11.0.18) android app. The android app pulls in an external SDK. The external SDK is initialized in a function in MainActivity.java: public void onCreate(Bundle savedInstanceState).

When building the app using npx react-native run-android the build succeeds and installs on the android device but produces a runtime error. Using adb logcat the error runtime error is

AndroidRuntime: java.lang.NoSuchMethodError: No static method get-impl([BI)B in class Lkotlin/UByteArray; or its super classes (declaration of 'kotlin.UByteArray' appears in /data/app/~~TcPFCAfQ3Z3vT26DyA1qbw==/com.xxxxxx-ANZxNTjuMdf2j9d9-5lFXA==/base.apk!classes14.dex)
AndroidRuntime:   at xx.xx.xxxx.common.bitwise.UbytearrayKt.xToHexString-GBYM_sE(:105)

...

at com.xxxxx.MainActivity.onCreate(MainActivity.java:26)

  • Sounds like you are compiling against a newer version of Kotlin vs what you have runtime – Jorn Mar 20 '23 at 16:09

0 Answers0