Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all 28469 articles
Browse latest View live

Build Failing for React Native iOS, "Multiple commands produce" Error

$
0
0

We were working on a react native project. One of my team members added some native modules on Linux and linked android. By then I am trying to link things in iOS but the build is always failing with this kind of error trace. The Android project is building normally.

I deleted xyz.xcworkspace and Podfile.lock then tried pod install.
Also, I tried to delete my node_modules and then yarn install followed by yarn link.

react-native-cli: 2.0.1  
react-native: 0.61.4  
yarn 1.19.1
Pod 1.8.4
XCode Version 11.2.1 (11B500)
macOS Catalina 10.15.1 (19B88)

xyz warning

duplicate output file '/Users/user/Library/Developer/Xcode/DerivedData/xyz-hhesslamjsqmbobykhskliclusph/Build/Products/Debug-iphonesimulator/xyz.app/AntDesign.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/faisal/Library/Developer/Xcode/DerivedData/xyz-hhesslamjsqmbobykhskliclusph/Build/Intermediates.noindex/xyz.build/Debug-iphonesimulator/xyz.build/Script-47F818C57EEC47EA3303EA1B.sh

xyz workspace errors

Multiple commands produce '/Users/user/Library/Developer/Xcode/DerivedData/xyz-hhesslamjsqmbobykhskliclusph/Build/Products/Debug-iphonesimulator/xyz.app/Zocial.ttf':
1) Target 'xyz' (project 'xyz') has copy command from '/Users/user/Desktop/xyz/native/node_modules/react-native-vector-icons/Fonts/Zocial.ttf' to '/Users/user/Library/Developer/Xcode/DerivedData/xyz-hhesslamjsqmbobykhskliclusph/Build/Products/Debug-iphonesimulator/xyz.app/Zocial.ttf'
2) That command depends on command in Target 'xyz' (project 'xyz'): script phase “[CP] Copy Pods Resources”

There are multiple errors and warnings like this but have same format with different file names.


Is there a way to change the background colour of the view for 1 second whenever the state changes in react native?

$
0
0

Is there a way to change the background colour of the view for one second then change it back to normal colour , whenever the state changes in react native ? How to approach this problem ? should we keep track of previous state and compare and make the blink , I am not getting any idea ? sorry if my question is silly, I am a beginner and still learning .

Image keyboard support in React Native

$
0
0

Android documentation states that:

With Android 7.1 (API level 25), the Android SDK includes the Commit Content API, which provides a universal way for IMEs to send images and other rich content directly to a text editor in an app.

However, when I use the React Native's TextInput component and select a GIF from Android's keyboard, I receive the following message (see screenshot):

This text field does not support GIF insertion from the keyboard.

This text field does not support GIF insertion from the keyboard.

How can I add support for this functionality to a React Native app? Ideally I'd like a component that provides a callback to handle the URI received by commitContent().

React native code changes not reflected in Android debug app

$
0
0

I am making some changes in my react-native project, on running react-native run-android I am able to see those changes, but when I am making a debug app, then in that app those changes aren't reflecting. I tried doing ./gradlew clean also, but still no luck. I am executing the below commands for making the debug build,

react-native bundle --dev false --platform android --entry-file index.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debug

and then,

./gradlew assembleDebug

I am then taking the apk from android/app/build/outputs/apk/debug/app-debug.apk, but the apk doesn't have the changes which I made, but on running react-native run-android and connecting my device I am able to see those changes. Please help me out with this, am I going wrong somewhere while creating the apk?

com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to install all

$
0
0

I am using React Native 0.26 and trying to play around with Google Plus Sign in from the below npm for Android application.

npm install react-native-google-signin --save

I am using command-line(react-native run-android) to build debug apks directly on my devices.

Followed all the installation steps very carefully. By default, my builds are working only on Build tools version 1.2.3 on build.gradle(/android/) and it used to work for other projects but I am having the below error in this project because I had to include the below line in build.gradle file,

classpath 'com.google.gms:google-services:2.1.0' // <--- add this

and when I add this, I also have to modify the distributionUrl to https\://services.gradle.org/distributions/gradle-2.13-all.zip on android/gradle/wrapper/gradle-wrapper.properties

After doing all the modifications when I tried to run the build command, it never installs the updated apk on the device and it is stuck at 99% progress.

Below is the detailed error,

Installing APK 'app-debug.apk' on 'Micromax Q372 - 5.0' for app:debug
08:26:35 E/1526411097: Error while uploading app-debug.apk : Unknown failure ([CDS]close[0])
Unable to install /home/sid/react/gplus/android/app/build/outputs/apk/app-debug.apk
com.android.ddmlib.InstallException: Failed to install all 
at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:91)

......

:app:installDebug FAILED

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:installDebug'.

com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to install all
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Selecting Firebase platform for react native application

$
0
0

I'm starting out on a project that will user react native and firebase, and I'm wondering what benefits there would be to using Firebase for Android and Firebase for IOS rather than just using Firebase for the web.

My inclination is to use the web implementation to simplify and standardize the data model API, but I'm wondering if there are great performance gains when using Firebase for Android / IOS. Any insights into this question would be greatly appreciated.

Edit: I'm not looking for recommendations on which platform to use. I'm trying to understand the specific features and performance stats made available by Firebase for Android/IOS vs Firebase for web. I've been using Firebase for web for several years now but haven't used Firebase for Android/IOS--are there specific features or performance related reasons to use the latter?

React-Native fresh App immediately closes when launch on real devices

$
0
0

I want to develop android app using React-Native, it works well on emulator, but when I try with real device, the app immediately closes when launch, even if it with fress react-native init projectName.

When I try to see at the Logcat, here is the result when I try to open the fresh app:

11-24 07:03:39.408 2007-2007/? E/PhoneStatusBar: updateNotificationTitleText  preIsInsidePanelCanSlide =true,misInsidePanelCanSlide = true,misInsidePanelOpen = false
11-24 07:03:40.068 2708-3433/? D/PhoneInterfaceManager: [PhoneIntfMgr] getDefaultSubscription, sub = 12
11-24 07:03:40.068 2708-3609/? D/PhoneInterfaceManager: [PhoneIntfMgr] getDefaultSubscription, sub = 12
11-24 07:03:40.098 2708-3600/? D/PhoneInterfaceManager: [PhoneIntfMgr] getDefaultSubscription, sub = 12
11-24 07:03:40.108 2708-3107/? D/PhoneInterfaceManager: [PhoneIntfMgr] getDefaultSubscription, sub = 12

    --------- beginning of system
11-24 07:03:40.118 1022-1042/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.library_app2/.MainActivity bnds=[286,87][539,358]} from uid 10059 and from pid 2779 on display 0
11-24 07:03:40.128 15968-15988/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.128 15968-15968/? D/KeyguardViewMediator: handleKeyguardVisibilityChanged mKeyguardViewManager = com.android.keyguard.KeyguardViewManager@12d66782
11-24 07:03:40.128 15968-15968/? D/KeyguardViewManager: handleKeyguardVisibilityChanged showing = true
11-24 07:03:40.138 1022-1042/? V/WindowManager: addAppToken: AppWindowToken{3930ddf5 token=Token{148c1f2c ActivityRecord{272956df u0 com.library_app2/.MainActivity t1328}}} to stack=1 task=1328 at 0
11-24 07:03:40.138 1022-1060/? V/WindowManager: Based on layer: Adding window Window{3f5127c4 u0 Starting com.library_app2} at 5 of 15
11-24 07:03:40.148 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.158 15968-15988/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.168 26069-26069/? I/art: Late-enabling -Xcheck:jni
11-24 07:03:40.168 1022-1904/? I/ActivityManager: Start proc 26069:com.library_app2/u0a343 for activity com.library_app2/.MainActivity
11-24 07:03:40.168 1022-1904/? D/ActivityManager:  (1) delay start com.library_app2 startResult.usingWrapper false
11-24 07:03:40.208 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.348 15968-15987/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.348 1022-1904/? V/WindowManager: Changing focus from Window{1786b351 u0 com.oppo.launcher/com.oppo.launcher.Launcher} to null Callers=com.android.server.wm.WindowManagerService.handleAppTransitionReadyLocked:9943 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:10529 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedLoop:9333 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLocked:9275 
11-24 07:03:40.348 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.348 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.358 15968-15988/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.368 15968-15988/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.368 15968-15987/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.378 15968-15988/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.378 26069-26069/com.library_app2 D/SoLoader: init start
11-24 07:03:40.378 26069-26069/com.library_app2 D/SoLoader: adding system library source: /vendor/lib
11-24 07:03:40.378 26069-26069/com.library_app2 D/SoLoader: adding system library source: /system/lib
11-24 07:03:40.378 26069-26069/com.library_app2 D/SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.library_app2-1/lib/arm flags = 0]
11-24 07:03:40.388 26069-26069/com.library_app2 D/SoLoader: adding backup source from : com.facebook.soloader.ApkSoSource[root = /data/data/com.library_app2/lib-main flags = 1]
11-24 07:03:40.388 26069-26069/com.library_app2 D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
11-24 07:03:40.388 26069-26069/com.library_app2 D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/vendor/lib flags = 2]
11-24 07:03:40.388 26069-26069/com.library_app2 D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.library_app2-1/lib/arm flags = 0]
11-24 07:03:40.388 26069-26069/com.library_app2 D/SoLoader: Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/com.library_app2/lib-main flags = 1]
11-24 07:03:40.388 26069-26069/com.library_app2 V/fb-UnpackingSoSource: locked dso store /data/data/com.library_app2/lib-main
11-24 07:03:40.388 26069-26069/com.library_app2 I/fb-UnpackingSoSource: dso store is up-to-date: /data/data/com.library_app2/lib-main
11-24 07:03:40.388 26069-26069/com.library_app2 V/fb-UnpackingSoSource: releasing dso store lock for /data/data/com.library_app2/lib-main
11-24 07:03:40.388 26069-26069/com.library_app2 D/SoLoader: init finish: 4 SO sources prepared
11-24 07:03:40.388 26069-26069/com.library_app2 D/SoLoader: init exiting
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err: java.lang.ClassNotFoundException: com.facebook.flipper.ReactNativeFlipper
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at java.lang.Class.classForName(Native Method)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at java.lang.Class.forName(Class.java:309)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at java.lang.Class.forName(Class.java:273)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at com.library_app2.MainApplication.initializeFlipper(MainApplication.java:61)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at com.library_app2.MainApplication.onCreate(MainApplication.java:46)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4735)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at android.app.ActivityThread.access$1600(ActivityThread.java:164)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1492)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at android.os.Looper.loop(Looper.java:159)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5473)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at java.lang.reflect.Method.invoke(Method.java:372)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.flipper.ReactNativeFlipper" on path: DexPathList[[zip file "/data/app/com.library_app2-1/base.apk"],nativeLibraryDirectories=[/data/app/com.library_app2-1/lib/arm, /vendor/lib, /system/lib]]
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:   ... 16 more
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:   Suppressed: java.lang.ClassNotFoundException: com.facebook.flipper.ReactNativeFlipper
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at java.lang.Class.classForName(Native Method)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:     at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:       ... 17 more
11-24 07:03:40.388 26069-26069/com.library_app2 W/System.err:   Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
11-24 07:03:40.448 26069-26069/com.library_app2 W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: About to load: libjscexecutor.so
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: libjscexecutor.so found on /data/data/com.library_app2/lib-main
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: Loading lib dependencies: [libfb.so, libreactnativejni.so, libjsc.so, libjsinspector.so, libfolly_json.so, libglog.so, libc++_shared.so, liblog.so, libc.so, libm.so, libdl.so]
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: About to load: libfb.so
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: libfb.so found on /data/data/com.library_app2/lib-main
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: Loading lib dependencies: [libc++_shared.so, liblog.so, libdl.so, libandroid.so, libc.so, libm.so]
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: About to load: libc++_shared.so
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: libc++_shared.so found on /data/data/com.library_app2/lib-main
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: Loading lib dependencies: [libc.so, libdl.so]
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: About to load: libc.so
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: libc.so not found on /data/data/com.library_app2/lib-main
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: libc.so not found on /data/app/com.library_app2-1/lib/arm
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: libc.so not found on /system/vendor/lib
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: libc.so found on /system/lib
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: libc.so loaded implicitly
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: Loaded: libc.so
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: About to load: libdl.so
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: libdl.so not found on /data/data/com.library_app2/lib-main
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: libdl.so not found on /data/app/com.library_app2-1/lib/arm
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: libdl.so not found on /system/vendor/lib
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: libdl.so found on /system/lib
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: libdl.so loaded implicitly
11-24 07:03:40.488 26069-26069/com.library_app2 D/SoLoader: Loaded: libdl.so
11-24 07:03:40.488 26069-26069/com.library_app2 E/art: dlopen("/data/data/com.library_app2/lib-main/libc++_shared.so", RTLD_LAZY) failed: dlopen failed: "/data/data/com.library_app2/lib-main/libc++_shared.so" is 64-bit instead of 32-bit
11-24 07:03:40.488 26069-26069/com.library_app2 E/SoLoader: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.library_app2/lib-main/libc++_shared.so" is 64-bit instead of 32-bit
11-24 07:03:40.488 26069-26069/com.library_app2 E/SoLoader: couldn't find DSO to load: libfb.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.library_app2/lib-main/libc++_shared.so" is 64-bit instead of 32-bit
11-24 07:03:40.488 26069-26069/com.library_app2 E/SoLoader: couldn't find DSO to load: libjscexecutor.so caused by: couldn't find DSO to load: libfb.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.library_app2/lib-main/libc++_shared.so" is 64-bit instead of 32-bit
11-24 07:03:40.498 26069-26069/com.library_app2 D/ReactNative: ReactInstanceManager.ctor()
11-24 07:03:40.498 26069-26069/com.library_app2 D/SoLoader: init exiting
11-24 07:03:40.558 26069-26069/com.library_app2 D/ReactNative: ReactInstanceManager.createReactContextInBackground()
11-24 07:03:40.568 26069-26069/com.library_app2 D/ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()
11-24 07:03:40.598 26069-26069/com.library_app2 I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>
11-24 07:03:40.598 26069-26069/com.library_app2 I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>
11-24 07:03:40.608 26069-26101/com.library_app2 W/unknown:InspectorPackagerConnection: Couldn't connect to packager, will silently retry
11-24 07:03:40.608 26069-26100/com.library_app2 W/unknown:ReconnectingWebSocket: Couldn't connect to "ws://localhost:8081/message?device=R7sf%20-%205.1.1%20-%20API%2022&app=com.library_app2&clientid=DevSupportManagerImpl", will silently retry
11-24 07:03:40.608 26069-26099/com.library_app2 W/unknown:ReactNative: The packager does not seem to be running as we got an IOException requesting its status: Failed to connect to localhost/127.0.0.1:8081
11-24 07:03:40.638 26069-26105/com.library_app2 D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
11-24 07:03:40.638 1022-2005/? V/WindowManager: Adding window Window{39362e65 u0 com.library_app2/com.library_app2.MainActivity} at 2 of 16 (before Window{3f5127c4 u0 Starting com.library_app2})
11-24 07:03:40.648 26069-26069/com.library_app2 D/ReactNative: ReactInstanceManager.recreateReactContextInBackgroundFromBundleLoader()
11-24 07:03:40.648 26069-26069/com.library_app2 D/ReactNative: ReactInstanceManager.recreateReactContextInBackground()
11-24 07:03:40.648 26069-26069/com.library_app2 D/ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()
11-24 07:03:40.648 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.668 26069-26069/com.library_app2 W/unknown:ReactNative: Packager connection already open, nooping.
11-24 07:03:40.668 26069-26107/com.library_app2 D/SoLoader: About to load: libhermes.so
11-24 07:03:40.668 26069-26107/com.library_app2 D/SoLoader: libhermes.so not found on /data/data/com.library_app2/lib-main
11-24 07:03:40.668 26069-26107/com.library_app2 D/SoLoader: libhermes.so not found on /data/app/com.library_app2-1/lib/arm
11-24 07:03:40.668 26069-26107/com.library_app2 D/SoLoader: libhermes.so not found on /system/vendor/lib
11-24 07:03:40.668 26069-26107/com.library_app2 D/SoLoader: libhermes.so not found on /system/lib
11-24 07:03:40.668 26069-26107/com.library_app2 E/SoLoader: couldn't find DSO to load: libhermes.so
11-24 07:03:40.678 26069-26107/com.library_app2 E/AndroidRuntime: FATAL EXCEPTION: create_react_context
    Process: com.library_app2, PID: 26069
    java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so
        at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:738)
        at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:591)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:529)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:484)
        at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
        at com.facebook.hermes.reactexecutor.HermesExecutorFactory.create(HermesExecutorFactory.java:27)
        at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:952)
        at java.lang.Thread.run(Thread.java:818)
11-24 07:03:40.678 1022-2704/? D/ActivityManager: addErrorToDropBox processName = com.library_app2
11-24 07:03:40.678 1022-2489/? V/WindowManager: Changing focus from null to Window{39362e65 u0 com.library_app2/com.library_app2.MainActivity} Callers=com.android.server.wm.WindowManagerService.relayoutWindow:3446 com.android.server.wm.Session.relayout:202 android.view.IWindowSession$Stub.onTransact:273 com.android.server.wm.Session.onTransact:130 
11-24 07:03:40.678 15968-15987/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.698 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.698 1022-2704/? W/ActivityManager:   Force finishing activity 1 com.library_app2/.MainActivity
11-24 07:03:40.698 26069-26105/com.library_app2 I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LA.BR.1.1.3.C8.05.01.00.115.099_msm8916_64_refs/tags/AU_LINUX_ANDROID_LA.BR.1.1.3.C8.05.01.00.115.099__release_AU (Ib5665b357a)
    OpenGL ES Shader Compiler Version: E031.25.03.04
    Build Date: 11/13/15 Fri
    Local Branch: 
    Remote Branch: refs/tags/AU_LINUX_ANDROID_LA.BR.1.1.3.C8.05.01.00.115.099
    Local Patches: NONE
    Reconstruct Branch: NOTHING
11-24 07:03:40.708 15968-15988/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.708 1022-26108/? D/DropBoxManagerService: file :: /data/system/dropbox/data_app_crash@1574553820706.txt
11-24 07:03:40.708 26069-26105/com.library_app2 I/OpenGLRenderer: Initialized EGL, version 1.4
11-24 07:03:40.718 26069-26105/com.library_app2 D/OpenGLRenderer: Enabling debug mode 0
11-24 07:03:40.768 2531-2531/? W/ResourceType: For resource 0x7f0b001d, entry index(29) is beyond type entryCount(23)
11-24 07:03:40.778 1022-1051/? V/WindowManager: Changing focus from Window{39362e65 u0 com.library_app2/com.library_app2.MainActivity} to Window{17b4c51d u0 Application Error: com.library_app2} Callers=com.android.server.wm.WindowManagerService.addWindow:2696 com.android.server.wm.Session.addToDisplay:173 android.view.ViewRootImpl.setView:612 android.view.WindowManagerGlobal.addView:300 
11-24 07:03:40.778 1022-1051/? W/ActivityManager:  Dismiss app error dialog : com.library_app2
11-24 07:03:40.798 15968-15988/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.808 15968-15987/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.818 1022-1040/? I/art: Background sticky concurrent mark sweep GC freed 144079(7MB) AllocSpace objects, 0(0B) LOS objects, 3% free, 134MB/138MB, paused 2.940ms total 108.195ms
11-24 07:03:40.818 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.818 1022-1051/? V/WindowManager: Changing focus from Window{17b4c51d u0 Application Error: com.library_app2} to null Callers=com.android.server.wm.WindowManagerService.removeWindowLocked:2866 com.android.server.wm.WindowManagerService.removeWindowLocked:2775 com.android.server.wm.WindowManagerService.removeWindow:2765 com.android.server.wm.Session.remove:192 
11-24 07:03:40.818 26069-26107/com.library_app2 V/Process: killProcess [26069] Callers=com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException:99 java.lang.ThreadGroup.uncaughtException:693 java.lang.ThreadGroup.uncaughtException:690 <bottom of call stack> 
11-24 07:03:40.818 26069-26107/com.library_app2 I/Process: Sending signal. PID: 26069 SIG: 9
11-24 07:03:40.818 298-298/? E/lowmemorykiller: Error writing /proc/26069/oom_score_adj; errno=22
11-24 07:03:40.828 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.838 15968-15988/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.868 15968-15988/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.868 15968-15987/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.878 1022-1042/? I/WindowState: WIN DEATH: Window{39362e65 u0 com.library_app2/com.library_app2.MainActivity}
11-24 07:03:40.878 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.878 1022-1984/? I/ActivityManager: Process com.library_app2 (pid 26069) has died
11-24 07:03:40.888 1022-1984/? D/ActivityManager: cleanUpApplicationRecordLocked app:ProcessRecord{3a5807bc 26069:com.library_app2/u0a343}, restarting:false, allowRestart:true, index:-1
11-24 07:03:40.888 1022-1984/? D/ActivityManager: cleanUpApplicationRecordLocked from:com.android.server.am.ActivityManagerService.handleAppDiedLocked:4985 com.android.server.am.ActivityManagerService.appDiedLocked:5164 com.android.server.am.ActivityManagerService$AppDeathRecipient.binderDied:1373 android.os.BinderProxy.sendDeathNotice:551 
11-24 07:03:40.888 1022-1984/? D/ActivityManager: cleanUpApplicationRecordLocked:goodbye proc com.library_app2
11-24 07:03:40.888 1022-1984/? D/ActivityManager: resumeTopActivityLocked: set keepResume to true.
11-24 07:03:40.888 15968-15988/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.898 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.908 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.918 1022-2005/? V/WindowManager: Changing focus from null to Window{1786b351 u0 com.oppo.launcher/com.oppo.launcher.Launcher} Callers=com.android.server.wm.WindowManagerService.relayoutWindow:3446 com.android.server.wm.Session.relayout:202 android.view.IWindowSession$Stub.onTransact:273 com.android.server.wm.Session.onTransact:130 
11-24 07:03:40.918 15968-15988/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.918 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.928 1022-2721/? W/InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 26069 uid 10343
11-24 07:03:40.938 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.938 15968-15987/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.948 15968-15987/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.948 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.948 15968-15987/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.968 15968-15999/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:40.968 15968-15987/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:41.378 567-567/? I/MSM-irqbalance: Decided to move IRQ215 from CPU4 to CPU5
11-24 07:03:41.408 15968-15987/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:41.408 15968-15968/? D/KeyguardViewMediator: handleKeyguardVisibilityChanged mKeyguardViewManager = com.android.keyguard.KeyguardViewManager@12d66782
11-24 07:03:41.408 15968-15968/? D/KeyguardViewManager: handleKeyguardVisibilityChanged showing = true
11-24 07:03:41.408 15968-15988/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:41.418 15968-15987/? D/KeyguardViewMediator: setOccluded false
11-24 07:03:42.778 2531-2531/? W/InputConnectionWrapper.ICC: Timed out waiting on IInputContextCallback
11-24 07:03:42.798 2531-2531/? E/FullInputEventModel: onStartInput event aborted: dwa: could not obtain extracted text (class dwa)
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: >>>ANR MAY HAPPEN!!!<<<
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: >>>History msg List is:
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: History msg <1> { when=-2s24ms what=32 target=com.android.internal.os.HandlerCaller$MyHandler }, cost = 2024 ms
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: History msg <2> { when=0 what=45 target=com.android.internal.os.HandlerCaller$MyHandler arg1=1 }, cost = 0 ms
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: History msg <3> { when=0 what=45 target=com.android.internal.os.HandlerCaller$MyHandler }, cost = 0 ms
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: History msg <4> { when=-1ms what=20 target=com.android.internal.os.HandlerCaller$MyHandler }, cost = 1 ms
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: History msg <5> { when=-3ms what=40 target=com.android.internal.os.HandlerCaller$MyHandler }, cost = 3 ms
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: History msg <6> { when=-1ms what=30 target=com.android.internal.os.HandlerCaller$MyHandler }, cost = 0 ms
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: History msg <7> { when=0 what=110 target=com.android.internal.os.HandlerCaller$MyHandler }, cost = 0 ms
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: History msg <8> { when=-21ms what=32 target=com.android.internal.os.HandlerCaller$MyHandler }, cost = 21 ms
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: History msg <9> { when=0 what=45 target=com.android.internal.os.HandlerCaller$MyHandler arg1=1 }, cost = 0 ms
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: History msg <10> { when=0 what=45 target=com.android.internal.os.HandlerCaller$MyHandler }, cost = 0 ms
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: >>>HISTORY MSG DUMP OVER<<<
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: >>>Current msg List is:
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: Current msg <1>  = { when=-1s923ms what=110 target=com.android.internal.os.HandlerCaller$MyHandler }
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: Current msg <2>  = { when=-1s858ms what=30 target=com.android.internal.os.HandlerCaller$MyHandler }
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: Current msg <3>  = { when=-1s857ms what=20 target=com.android.internal.os.HandlerCaller$MyHandler obj=InputBinding{android.os.BinderProxy@39230931 / uid 10059 / pid 2779} }
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: Current msg <4>  = { when=-1s857ms what=45 target=com.android.internal.os.HandlerCaller$MyHandler arg1=1 obj=android.inputmethodservice.InputMethodService$InputMethodSessionImpl@3cbe03e4 }
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: Current msg <5>  = { when=-1s857ms what=32 target=com.android.internal.os.HandlerCaller$MyHandler obj=com.android.internal.os.SomeArgs@f70eec3 }
11-24 07:03:42.798 2531-2531/? D/ANR_LOG: >>>CURRENT MSG DUMP OVER<<<
11-24 07:03:42.798 2531-2531/? W/ResourceType: For resource 0x7f0b001d, entry index(29) is beyond type entryCount(23)
11-24 07:03:43.218 2007-2007/? E/PhoneStatusBar: updateNotificationTitleText  preIsInsidePanelCanSlide =true,misInsidePanelCanSlide = true,misInsidePanelOpen = false

I have trying to figure out this few days, but no luck.

Please, any helps would be very appreciated.

TransformException: DexArchiveBuilderException: Failed to process \.gradle\caches\transforms-1\files-1.1\play-services-xxx-12.0.1.aar\xxx\classes.jar

$
0
0

I'm on React Native and I have added react-native-camera package

After, I got :

Execution failed for task ':app:transformClassesWithDexBuilderForDebug'. com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-xxx-12.0.1.aar\xxx\jars\classes.jar

NB: i use also react-native-maps

What I have and have do :

  • React Native 0.59
  • react-native-camera: 2.11.1```` (to avoid androidx dependancy)
  • implementation 'com.google.android.gms:play-services:12.0.1'
  • implementation 'com.android.support:multidex:1.0.3'
  • apply plugin: 'com.google.gms.google-services'com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
  • multiDexEnabled true and missingDimensionStrategy 'react-native-camera', 'general'
  • repositories google(), classpath 'com.android.tools.build:gradle:3.3.1', classpath 'com.google.gms:google-services:4.2.0', maven { url "https://www.jitpack.io" }
  • gradlew clean

      buildToolsVersion = "28.0.3"
      minSdkVersion = 19
      compileSdkVersion = 28
      targetSdkVersion = 28
      supportLibVersion = "28.0.0"
      googlePlayServicesVersion = "15.0.1"
      androidMapsUtilsVersion = "0.5+"
    }```
    

I have already check these Q/A :

And more, but no luck


Others details come with :

C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gass-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzflk was not found, it is required for default or static interface methods desugaring of int com.google.android.gms.internal.zzba.zzq() C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gcm-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.common.internal.zzbq was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.gcm.Task$Builder.checkConditions() C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gcm-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.common.util.zzz was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.gcm.GcmTaskService$zza.handleMessage(android.os.Message) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gass-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzfls was not found, it is required for default or static interface methods desugaring of com.google.android.gms.internal.zzba com.google.android.gms.internal.zzcdf.zzawd() C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gass-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzbgo was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.internal.zzcdf.writeToParcel(android.os.Parcel, int) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gcm-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.common.util.zzs was not found, it is required for default or static interface methods desugaring of boolean com.google.android.gms.gcm.zza.zzt(android.os.Bundle) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-gcm-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.common.util.zzs was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.gcm.GcmReceiver.onReceive(android.content.Context, android.content.Intent) D8: Type com.google.android.gms.common.internal.zzf is referenced as an interface from com.google.android.gms.internal.zzcdb. C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzbgm was not found, it is required for default or static interface methods desugaring of java.lang.Object com.google.android.gms.wallet.zzae.createFromParcel(android.os.Parcel) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzbgo was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.wallet.Cart.writeToParcel(android.os.Parcel, int) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.common.internal.zzbq was not found, it is required for default or static interface methods desugaring of com.google.android.gms.wallet.PaymentDataRequest$Builder com.google.android.gms.wallet.PaymentDataRequest$Builder.addAllowedPaymentMethods(java.util.Collection) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.common.internal.zzbg was not found, it is required for default or static interface methods desugaring of boolean com.google.android.gms.wallet.Wallet$WalletOptions.equals(java.lang.Object) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzbgq was not found, it is required for default or static interface methods desugaring of com.google.android.gms.wallet.PaymentData com.google.android.gms.wallet.PaymentData.getFromIntent(android.content.Intent) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.common.internal.zzbq was not found, it is required for default or static interface methods desugaring of com.google.android.gms.wallet.PaymentMethodTokenizationParameters$Builder com.google.android.gms.wallet.PaymentMethodTokenizationParameters$Builder.addParameter(java.lang.String, java.lang.String) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.dynamic.zzn was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.wallet.fragment.SupportWalletFragment$zzb.onInflate(android.app.Activity, android.os.Bundle, android.os.Bundle) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.dynamic.zzj was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.wallet.fragment.WalletFragment.<init>() C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzbgo was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.internal.zzdmb.writeToParcel(android.os.Parcel, int) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzbgm was not found, it is required for default or static interface methods desugaring of java.lang.Object com.google.android.gms.wallet.fragment.zzd.createFromParcel(android.os.Parcel) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.common.api.internal.zzdf was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.internal.zzdmy.zza(int, boolean, android.os.Bundle) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.dynamic.zzn was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.wallet.fragment.WalletFragment$zzb.onInflate(android.app.Activity, android.os.Bundle, android.os.Bundle) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzex was not found, it is required for default or static interface methods desugaring of boolean com.google.android.gms.internal.zzdmn.onTransact(int, android.os.Parcel, android.os.Parcel, int) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.dynamic.IObjectWrapper$zza was not found, it is required for default or static interface methods desugaring of com.google.android.gms.dynamic.IObjectWrapper com.google.android.gms.internal.zzdmf.onCreateView(com.google.android.gms.dynamic.IObjectWrapper, com.google.android.gms.dynamic.IObjectWrapper, android.os.Bundle) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-wallet-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.dynamic.zzr was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.wallet.fragment.SupportWalletFragment.<init>() C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzbgm was not found, it is required for default or static interface methods desugaring of java.lang.Object com.google.android.gms.identity.intents.model.zza.createFromParcel(android.os.Parcel) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.common.internal.zzbq was not found, it is required for default or static interface methods desugaring of com.google.android.gms.common.api.Api$zze com.google.android.gms.identity.intents.zza.zza(android.content.Context, android.os.Looper, com.google.android.gms.common.internal.zzr, java.lang.Object, com.google.android.gms.common.api.GoogleApiClient$ConnectionCallbacks, com.google.android.gms.common.api.GoogleApiClient$OnConnectionFailedListener) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.common.internal.zzab was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.internal.zzcdo.disconnect() C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzbgo was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.identity.intents.model.UserAddress.writeToParcel(android.os.Parcel, int) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzbgm was not found, it is required for default or static interface methods desugaring of java.lang.Object com.google.android.gms.identity.intents.model.zzb.createFromParcel(android.os.Parcel) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzex was not found, it is required for default or static interface methods desugaring of boolean com.google.android.gms.internal.zzcdr.onTransact(int, android.os.Parcel, android.os.Parcel, int) C:\xxx.gradle\caches\transforms-1\files-1.1\play-services-identity-12.0.1.aar\xxx\jars\classes.jar: D8: Type com.google.android.gms.internal.zzbgo was not found, it is required for default or static interface methods desugaring of void com.google.android.gms.identity.intents.UserAddressRequest.writeToParcel(android.os.Parcel, int)

(Excuse my bad english)


Getting java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 in react native

$
0
0

I am new to react-native. when I try to run my app from the android-studio with my phone connected via USB (debug mode enabled). Build succeeded& App got installed into the phone. but when I try to open the app, it crashes immediately. please check the screenshot for the error and java line from the debug mode.

enter image description here

error in debug:

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.parable.rnmvp, PID: 18237
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.get(ArrayList.java:437)
        at com.dooboolab.RNIap.RNIapModule.onPurchasesUpdated(RNIapModule.java:517)
        at com.dooboolab.RNIap.RNIapModule$11.run(RNIapModule.java:544)
        at com.dooboolab.RNIap.RNIapModule$2.onBillingSetupFinished(RNIapModule.java:103)
        at com.android.billingclient.api.BillingClientImpl$BillingServiceConnection$1.run(BillingClientImpl.java:1521)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:232)
        at android.app.ActivityThread.main(ActivityThread.java:7165)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888)

ArrayList.java (error block)

public E get(int index) {
        if (index >= size)
            throw new IndexOutOfBoundsException(outOfBoundsMsg(index)); //line 437 (from this line it throws error)
        return (E) elementData[index];
    }

Please help me to fix this issue. if I need to share any extra info. please ask in the comments.

Project with path ':unimodules-core' could not be found in project ':@unimodules_react-native-adapter'

$
0
0

Taking over RN project from another developer and trying to make a build for Android, however Gradle keeps giving me this issue:

ERROR: Project with path ':unimodules-core' could not be found in project ':@unimodules_react-native-adapter'.

The only solution I could find regarding this is adding settings.gradle file:

include ':@unimodules_react-native-adapter'
project(':@unimodules_react-native-adapter').projectDir = new File(rootProject.projectDir, '../node_modules/@unimodules/react-native-adapter/android')

but this doesn't work for me.

I have linked the native dependecies I have tried npm and yarn

Project is using:

"@unimodules/core": "^3.0.2",
 "@unimodules/react-native-adapter": "^3.0.0",

Gradle is directing me to the @unimodules/react-native-adapter/android/build.gradle file:

apply from: project(":unimodules-core").file("../unimodules-core.gradle")

Any guidance of what could possible be wrong, would greatly be appreciated

ScrollView for only part of a component? (React Native)

$
0
0

(New to ReactNative)

I currently have a React Native app which has a component with the following (rough) structure :

<View>
      <View>
         <TextInput />
         <Text />
      </View>
      <View>
         <Image />
         <Button />
      </View>
    </View>

So within that parent View, let's call the children View1 and View2. I can very easily substitute the parent View for ScrollView and have the whole component be scrollable. However, what if I want only View2 to be scrollable and View1 to stay in place? And I mean vertical scrolling, not horizontal scrolling/pagination.

How can I do this? Switching out View2 for ScrollView does not work. I'm also looking for solutions where I wouldn't have to split those View1 and View2 into different components because there's a complex mechanism currently in place which relies on sharing state between the two.

Any suggestions? Happy to provide some of the actual code if necessary but I believe the above should be enough to get a feel for it.

Thanks in advance.

How to display GIF in react-native android app?

$
0
0

I want to display a simple gif via URL in my Image tag in my android react-native app but when I start it no image is shown. The code as provided in the docs does work only for iOS but not for android:

<Image
  style={styles.gif}
  source={{uri: 'http://38.media.tumblr.com/9e9bd08c6e2d10561dd1fb4197df4c4e/tumblr_mfqekpMktw1rn90umo1_500.gif'}}
/>

There was a similar question here but as already said this only works for iOS: How do I display an animated gif in React Native?
Regarding this commit it should work though: https://github.com/facebook/react-native/commit/fcd7de5301655b39832d49908e5ca72ddaf91f7e

Layout Animation not working on Android (create() method)

$
0
0

I'm using LayoutAnimation for animating my <View>. I toggle it with:

LayoutAnimation.configureNext(LayoutAnimation.Presets.spring);
this.showView = !this.showView;

but the animation is not working at the moment of create, only when the View disappears. (iOS works perfect)

React native Ctrl M or dev tool not showing in my emulator

$
0
0

He thanks in advance, In react native am not able to right click or open dev mode in emulator.

React Native - Get file content from intent filter

$
0
0

I am using react native and expo. I edit the app.json so any time I open local file from the device (click on the file) with "play" extension it open my app. The file contains text. This is some of my app.json:

"android": {
      "package": "com.myapp",
      "intentFilters": [
        {
          "action": "VIEW",
          "data": {
            "mimeType": "*/*",
            "host": "*",
            "pathPattern": ".*\\.play"
          },
          "category": [
            "DEFAULT"
          ]
        }
      ]
    }

How can I get the content of the file when the application is opened?


Cannot read packageName from /***/***/AndroidManifest.xml

$
0
0

I know this question is duplicate and has been asked a lot, I read all the answers from all the questions and none of them worked. I'm trying to build a react native app for release and I get this error

➜  android git:(master) ✗ ./gradlew assembleRelease
> Task :preBuild UP-TO-DATE
> Task :preReleaseBuild UP-TO-DATE
> Task :compileReleaseAidl NO-SOURCE
> Task :compileReleaseRenderscript NO-SOURCE
> Task :checkReleaseManifest UP-TO-DATE
> Task :generateReleaseBuildConfig FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':generateReleaseBuildConfig'.
> Cannot read packageName from /run/media/christopher/warzone/projects/mobile/in_development/fundiapp/mobileapp/android/src/main/AndroidManifest.xml

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
3 actionable tasks: 1 executed, 2 up-to-date

I tried every solution from the questions asked and none of them worked. These are my files

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest package="com.mobileapp" xmlns:android="http://schemas.android.com/apk/res/android">

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <application
      android:name=".MainApplication"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:allowBackup="false"
      android:theme="@style/AppTheme">

      <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="********"/>

        <activity
            android:name=".SplashActivity"
            android:label="@string/app_name"
            android:theme="@style/SplashScreenTheme">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:theme="@style/AppTheme"
            android:screenOrientation="portrait"
            android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
            android:windowSoftInputMode="adjustResize"
            android:exported="true">
        </activity>

      <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
    </application>

</manifest>

bild.gradle file

apply plugin: "com.android.application"

import com.android.build.OutputFile

project.ext.react = [
    entryFile: "index.js",
    enableHermes: false,  // clean and rebuild if changing
]

apply from: "../../node_modules/react-native/react.gradle"

def enableSeparateBuildPerCPUArchitecture = false


def enableProguardInReleaseBuilds = false


def jscFlavor = 'org.webkit:android-jsc:+'


def enableHermes = project.ext.react.get("enableHermes", false);

android {
    compileSdkVersion rootProject.ext.compileSdkVersion

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        applicationId "com.mobileapp"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "1.0"
    }
    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
        }
    }
    signingConfigs {
        debug {
            storeFile file('*****.keystore')
            storePassword "*****"
            keyAlias "*****"
            keyPassword "*****"
        }
    }
    buildTypes {
        debug {
            signingConfig signingConfigs.debug
        }
        release {
            // Caution! In production, you need to generate your own keystore file.
            // see https://facebook.github.io/react-native/docs/signed-apk-android.
            signingConfig signingConfigs.debug
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }
    // applicationVariants are e.g. debug, release
    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            // For each separate APK per architecture, set a unique version code as described here:
            // https://developer.android.com/studio/build/configure-apk-splits.html
            def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
            def abi = output.getFilter(OutputFile.ABI)
            if (abi != null) {  // null for the universal-debug, universal-release variants
                output.versionCodeOverride =
                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
            }

        }
    }
}

dependencies {
    implementation project(':react-native-image-picker')
    implementation project(':react-native-maps')
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.facebook.react:react-native:+"  // From node_modules
    implementation project(':lottie-react-native')

    if (enableHermes) {
        def hermesPath = "../../node_modules/hermes-engine/android/";
        debugImplementation files(hermesPath + "hermes-debug.aar")
        releaseImplementation files(hermesPath + "hermes-release.aar")
    } else {
        implementation jscFlavor
    }
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
    from configurations.compile
    into 'libs'
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

Unable to run app in debug mode in React Native

$
0
0

My react-native debug app is throwing the below error the moment I open it,

enter image description here

On clicking reload, it throws me below error screen,

enter image description here

I went through this and made the changes in my android manifest file(android:usesCleartextTraffic="true"), but still the same issue is happening .

It works perfectly fine while running react-native run-android and connecting my physical device but in debug APK it doesn't and throws above error.

I made the debug APK using below steps, I manually created the bundle using the below command, RN version- 0.60.0

react-native bundle --dev false --platform android --entry-file index.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debug

and then

cd android && ./gradlew assembleDebug

Please help me out here. Thanks a lot!

Expo React-Native: Deep linking is not working on android

$
0
0

Deep linking is not working on android when the app is on background or foreground state, but if it's closed it works perfectly fine. Only in android but in iOS it works both even if it's in background or closed app state.

I have these methods, but it doesn't work on android when it's on background or foreground

1. Linking.addEventListener('url', callback)
2. Linking.getInitialURL -- it returns a Promise that resolves to the url, if there is one.

React Native Expo Issue with UI Manager Error

$
0
0

I am getting this error for a package in Android:

"Invariant Violation: requireNativeComponent: "WheelPicker" was not found in the UIManager.

I have seen that you can fix links for modules fairly easy outside of Expo. And there is a GH issue that explains just how to do this here:

https://github.com/KalonTech/ReactNativeWheelPicker/issues/83

But I don't know what to do inside of Expo's env aside from ejecting.

Any ideas?

React-Native Android Running on OS System but not Windows

$
0
0

I am currently working on a React-Native project which runs perfect on my MacBook for both react-native run-ios and react-native run-android.

When I try to run the same program on my windows computer using react-native run-android I get the error that it's unable to load the script and that I need to make sure metro-server is running or that bundle index.android.bundle is package correctly.

Any suggestions on why this may be happening and what I could do to fix the issue?

Viewing all 28469 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>