javascript - ReactNativeJS: C++ Exception in 'nativeRequireModuleConfig' -


i have function react native app ios. tried making android version well. when tried run on simulator throw following error :

e/reactnativejs: c++ exception in 'nativerequiremoduleconfig': java.lang.incompatibleclasschangeerror: method 'java.io.file android.support.v4.content.contextcompat.getnobackupfilesdir(android.content.context)' expected of type virtual instead found of type direct (declaration of 'java.lang.reflect.artmethod' appears in /system/framework/core-libart.jar) 

gradle console :

agpbi: {"kind":"error","text":"error converting bytecode dex:\ncause: com.android.dex.dexexception: multiple dex files define lcom/google/android/gms/iid/messengercompat$1;","sources":[{}],"original":"unexpected top-level exception:\ncom.android.dex.dexexception: multiple dex files define lcom/google/android/gms/iid/messengercompat$1;\n\tat com.android.dx.merge.dexmerger.readsortabletypes(dexmerger.java:596)\n\tat com.android.dx.merge.dexmerger.getsortedtypes(dexmerger.java:554)\n\tat com.android.dx.merge.dexmerger.mergeclassdefs(dexmerger.java:535)\n\tat com.android.dx.merge.dexmerger.mergedexes(dexmerger.java:171)\n\tat com.android.dx.merge.dexmerger.merge(dexmerger.java:189)\n\tat com.android.dx.command.dexer.main.mergelibrarydexbuffers(main.java:502)\n\tat com.android.dx.command.dexer.main.runmonodex(main.java:334)\n\tat com.android.dx.command.dexer.main.run(main.java:277)\n\tat com.android.dx.command.dexer.main.main(main.java:245)\n\tat com.android.dx.command.main.main(main.java:106)\n","tool":"dex"}  :app:transformclasseswithdexfordebug failed  failure: build failed exception.  * went wrong: execution failed task ':app:transformclasseswithdexfordebug'. > com.android.build.api.transform.transformexception: com.android.ide.common.process.processexception: java.util.concurrent.executionexception: java.lang.unsupportedoperationexception  * try: run --stacktrace option stack trace. run --info or --debug option more log output.  build failed  total time: 2 mins 19.746 secs 

i'm using following modules in project : enter image description here

any solutions please?


update:

logcat real device :

e/androidruntime: fatal exception: mqt_js                                                                 process: com.opencampus, pid: 10821                                                                 java.lang.incompatibleclasschangeerror: method 'java.io.file android.support.v4.content.contextcompat.getnobackupfilesdir(android.content.context)' expected of type virtual instead found of type direct (declaration of 'com.google.android.gms.iid.zzd' appears in /data/data/com.opencampus/files/instant-run/dex/slice-com.google.android.gms-play-services-gcm-8.1.0_4d535f5b5c1f36628a96d503891e7dd5c3b4eb8f-classes.dex)                                                                     @ com.google.android.gms.iid.zzd.zzdo(unknown source)                                                                     @ com.google.android.gms.iid.zzd.<init>(unknown source)                                                                     @ com.google.android.gms.iid.zzd.<init>(unknown source)                                                                     @ com.google.android.gms.iid.instanceid.zza(unknown source)                                                                     @ com.google.android.gms.iid.instanceid.getinstance(unknown source)                                                                     @ com.learnium.rndeviceinfo.rndevicemodule.getconstants(rndevicemodule.java:83)                                                                     @ com.facebook.react.cxxbridge.javamodulewrapper.getconstants(javamodulewrapper.java:130)                                                                     @ com.facebook.react.bridge.queue.nativerunnable.run(native method)                                                                     @ android.os.handler.handlecallback(handler.java:739)                                                                     @ android.os.handler.dispatchmessage(handler.java:95)                                                                     @ com.facebook.react.bridge.queue.messagequeuethreadhandler.dispatchmessage(messagequeuethreadhandler.java:31)                                                                     @ android.os.looper.loop(looper.java:158)                                                                     @ com.facebook.react.bridge.queue.messagequeuethreadimpl$3.run(messagequeuethreadimpl.java:196)                                                                     @ java.lang.thread.run(thread.java:818) 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -