Closed the-simian closed 7 years ago
Yeah so this was a problem I had. Turns out there was a PR created which changed this but the documentation was also not updated. I'll try and find the PRs for the change and docs (which hasn't merged).
For now run:
react-native run-android --configuration=release
PR for the change: https://github.com/facebook/react-native/pull/10867#issuecomment-266769510 PR for the docs change: https://github.com/facebook/react-native/pull/11443
Thanks I appreciate it. As long as there's something to run that works, i'm perfectly happy
This is now fixed in v0.41.0-rc.0 and react-native run-android --variant=release
works as expected.
FYI @arthur31416, this appears to have broken again with v0.41.0-rc.2. I used react-native-git-upgrade v0.41.0-rc.0
to get back to a working state.
This problem has been around since 0.41 and still exists on 0.43.0-rc.4. Should this PR be reopened, or should we create a new one? This issue has prevented me from ever being able to create an android release build for my project.
it seems as though the 'installRelease' is not found in the root project in 0.43.0.
So it seems to be because I forgot to include "signingConfig signingConfigs.release" in the "release" property of the "buildTypes" property of the app\build.gradle.
Are there any way to test release builds on your simulator now? Im experiencing the same problems as above, running 0.43.0-rc.4
@trubin seems to be right. As soon as I configured my Android build for signing the release build, this problem went away. Its basically just a really bad error message.
It would be nice if there were a way to install an APK which didn't require a signing config. I am just working with a sandbox app, and I wanted to see what the real performance would be like (since __DEV__ is very slow).
Hey Guys, can you please try my fix below:
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
then:
react-native run-android --variant=release
@Ethan0007 It makes no difference for me. The 'bundle' command runs fine but the run-android still fails.
@scarlac sir, can you please paste the said error.
@Ethan0007 It was the exact error reported in this issue. For future reference, I solved it by following the signing configuration guide. The task installRelease
won't be available unless the signing is set up properly. I followed the guide exactly, and then it worked.
@scarlac Good to hear that.
See @scarlac response - helpful link on how to sign using configure in Android Studio https://developer.android.com/studio/publish/app-signing.html
Scroll to the Configure the build process to automatically sign your APK section
@Ethan0007 Your bundle command did the trick for me. Otherwise the build worked and it installs on the phone, but would crash complaining:
UncaughtException: java.lang.RuntimeException: Error calling AppRegistry.runApplication ..Could not get BatchedBridge, make sure your bundle is packaged correctly
Now I am just confused why that is and why that is not done automatically? Do I need to run that everytime?
Sir, please try to cd android then try to & ./gradlew clean. then & ./gradlew assembleRelease
RN 0.45 error: unknown option `--configuration' --variant works
Is there a way to just build and run in release mode with --dev=false without having to go through the signing step? I just want to do performance testing without creating a release-able APK.
I had this error because i hadn't included the keystore passwords! as someone mentioned earlier, just a horribly misleading message! should be re-opened.
I run react-native run-android --variant=release but the apk can not run on devices. It has stopped at lauch. I configed signed apk as facebook tutorial.
My git project: https://github.com/lcd11001/NewYorkTimes.git
Pls help me, thank you so much
@lcd11001 can you please paste here the error message that you have encountered?
@Ethan0007 Hello, here is my log on Samsung Android 4.4.2 PC: Windows 10 react-native-cli: 2.0.1 react-native: 0.50.4 npm: 3.10.10 nodejs: v6.9.5
This issue happens when I import Image or ImageBackground into project. In my test project, App.js
// OK < AppText >Test App text</ AppText> < Title >Test title</ Title> < SmallText >Test small text</ SmallText> < Byline date={new Date()} author='Lương Công Dân' ></ Byline>
// ERROR after import my Thumnail component < Thumbnail url={urlDemo} titleText='test Thumbnail' accentColor='#FF00FF' >haha</ Thumbnail>
C:\Users\dan.luongcong>adb logcat
--------- beginning of /dev/log/main
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
V/audio_hw_primary( 271): out_standby: enter: usecase(0: deep-buffer-playback)
I/AudioService( 908): getStreamVolume 3 index 140
V/audio_hw_primary( 271): stop_output_stream: enter: usecase(0: deep-buffer-playback)
V/audio_hw_primary( 271): disable_audio_route: enter: usecase(0)
V/audio_hw_primary( 271): disable_audio_route: reset mixer path: deep-buffer-playback
D/audio_route( 271): ++++ audio_route_update_mixer ==============
D/audio_route( 271): Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia1, value: 0
D/audio_route( 271): ------ audio_route_update_mixer ==============
V/audio_hw_primary( 271): disable_audio_route: exit
V/audio_hw_primary( 271): disable_snd_device: snd_device(2: speaker)
D/audio_route( 271): ++++ audio_route_update_mixer ==============
D/audio_route( 271): Setting mixer control: SPK DRV Volume, value: 0
D/audio_route( 271): Setting mixer control: RX7 Digital Volume, value: 0
D/audio_route( 271): Setting mixer control: COMP0 Switch, value: 0
D/audio_route( 271): Setting mixer control: RX7 MIX1 INP1, value: 0
D/audio_route( 271): Setting mixer control: DAC1 Switch, value: 0
D/audio_route( 271): ------ audio_route_update_mixer ==============
V/audio_hw_primary( 271): stop_output_stream: exit: status(0)
V/audio_hw_primary( 271): out_standby: exit
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
E/SMD ( 262): DCD ON
I/Icing ( 1571): IndexChimeraService.getServiceInterface callingPackage=com.android.chrome componentName=null serviceId=36
I/AudioService( 908): getStreamVolume 3 index 140
I/Icing ( 1571): Usage reports ok 0, Failed Usage reports 0, indexed 0, rejected 0, imm upload false
I/ThermalEngine( 293): Mitigation:CPU[3]:2265600 Khz
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
I/Icing ( 1571): Indexing 2008661757BB0474FEF12FB355D1BA06F1A67A09 from com.android.chrome
I/Icing ( 1571): Indexing done 2008661757BB0474FEF12FB355D1BA06F1A67A09
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
D/LocationManagerService( 908): getLastLocation: Request[POWER_NONE passive fastest=0 num=1]
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
I/AudioService( 908): getStreamVolume 3 index 140
D/InputReader( 908): Input event: value=1
I/InputReader( 908): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.738 ] when=8164497722000
I/InputDispatcher( 908): Delivering touch to: action: 0x4, toolType: 1
I/InputDispatcher( 908): Delivering touch to: action: 0x4, toolType: 1
I/InputDispatcher( 908): Delivering touch to: action: 0x0, toolType: 1
I/InputDispatcher( 908): Delivering touch to: action: 0x0, toolType: 1
D/AutoHideHelper( 2164): ###check Single invalid
D/InputReader( 908): Input event: value=0
I/InputReader( 908): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=8164578861000
I/InputDispatcher( 908): Delivering touch to: action: 0x1, toolType: 1
I/InputDispatcher( 908): Delivering touch to: action: 0x1, toolType: 1
I/AudioPolicyManagerBase( 271): getSituationVolume: isBTConnected:0 isHeadConnected:0
V/AudioPolicyManagerBase( 271): getParamFromPolicy deviceInt = 0, situationInt = 1, situationVolume = 0.500000
V/AudioPolicyManagerBase( 271): getOutput() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0
V/AudioPolicyManagerBase( 271): getOutputsForDevice device 0002 -> 0002
V/AudioPolicyManagerBase( 271): getOutput() returns output 2
V/AudioPolicyManagerBase( 271): getOutput() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0
V/AudioPolicyManagerBase( 271): getOutputsForDevice device 0002 -> 0002
V/AudioPolicyManagerBase( 271): getOutput() returns output 2
V/AudioPolicyManagerBase( 271): getOutput() device 2, stream 1, samplingRate 48000, format 1, channelMask 1, flags 4
V/AudioPolicyManagerBase( 271): getOutputsForDevice device 0002 -> 0002
V/AudioPolicyManagerBase( 271): getOutput() returns output 2
V/AudioPolicyManagerBase( 271): startOutput() output 2, stream 1, session 114
V/AudioPolicyManagerBase( 271): changeRefCount() stream 1, count 1
W/AudioPolicyManagerBase( 271): stream type [13], return media strategy
W/AudioPolicyManagerBase( 271): stream type [13], return media strategy
W/AudioPolicyManagerBase( 271): stream type [13], return media strategy
W/AudioPolicyManagerBase( 271): stream type [13], return media strategy
V/AudioPolicyManagerBase( 271): getNewDevice() selected device 2
W/AudioPolicyManagerBase( 271): stream type [13], return media strategy
V/AudioPolicyManagerBase( 271): setOutputDevice() output 2 device 0002 force 0 delayMs 0
V/AudioPolicyManagerBase( 271): setOutputDevice() prevDevice (0002)
V/AudioPolicyManagerBase( 271): setOutputDevice() setting same device 0002 or null device for output 2
V/audio_hw_primary( 271): start_output_stream: enter: usecase(0: deep-buffer-playback) devices(0x2)
V/audio_hw_primary( 271): select_devices: ENTER
V/audio_hw_primary( 271): select_devices: usecase(normal)
V/audio_hw_primary( 271): select_devices: usecase(PCM_PLAYBACK)
V/msm8974_platform( 271): platform_get_output_snd_device: enter: output devices(0x2)
V/msm8974_platform( 271): get_OUTPUT_snd_device: for Normal Playback
V/msm8974_platform( 271): platform_get_output_snd_device: exit: snd_device(speaker)
D/audio_hw_primary( 271): select_devices: out_snd_device(2: speaker)
D/audio_hw_primary( 271): select_devices: in_snd_device(0: dummy)
V/audio_hw_primary( 271): enable_snd_device: snd_device(2: speaker)
D/ACDB-LOADER( 271): ACDB -> send_audio_cal, acdb_id = 15, path = 0
D/ACDB-LOADER( 271): ACDB -> send_adm_topology
D/ACDB-LOADER( 271): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
D/ACDB-LOADER( 271): ACDB -> send_audtable
D/ACDB-LOADER( 271): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
D/ ( 271): ACDBFILE_MGR:Read the devices count as zero, please check the acdb file
D/ACDB-LOADER( 271): ACDB -> AUDIO_SET_AUDPROC_CAL
D/ACDB-LOADER( 271): ACDB -> send_audvoltable
D/ACDB-LOADER( 271): ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE
D/ ( 271): ACDBFILE_MGR:Read the devices count as zero, please check the acdb file
D/ACDB-LOADER( 271): ACDB -> AUDIO_SET_AUDPROC_VOL_CAL
D/ACDB-LOADER( 271): ACDB -> send_afe_cal
D/ACDB-LOADER( 271): ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
D/ ( 271): ACDBFILE_MGR:Read the devices count as zero, please check the acdb file
D/ACDB-LOADER( 271): ACDB -> AUDIO_SET_AFE_CAL
V/audio_hw_primary( 271): enable_snd_device: snd_device(2: speaker)
D/audio_route( 271): ++++ audio_route_update_mixer ==============
D/audio_route( 271): Setting mixer control: SPK DRV Volume, value: 8
V/AudioPolicyManagerBase( 271): releaseOutput() 2
D/audio_route( 271): Setting mixer control: RX7 Digital Volume, value: 81
D/audio_route( 271): Setting mixer control: COMP0 Switch, value: 1
D/audio_route( 271): Setting mixer control: RX7 MIX1 INP1, value: 5
D/audio_route( 271): Setting mixer control: DAC1 Switch, value: 1
D/audio_route( 271): ------ audio_route_update_mixer ==============
V/audio_hw_primary( 271): enable_audio_route: enter: usecase(0)
V/audio_hw_primary( 271): enable_audio_route: apply mixer path: deep-buffer-playback
D/audio_route( 271): ++++ audio_route_update_mixer ==============
D/audio_route( 271): Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia1, value: 1
D/audio_route( 271): ------ audio_route_update_mixer ==============
V/audio_hw_primary( 271): enable_audio_route: exit
V/audio_hw_primary( 271): start_output_stream: Opening PCM device card_id(0) device_id(0)
V/audio_hw_primary( 271): start_output_stream: exit
I/ThermalEngine( 293): Mitigation:CPU[3]:2265600 Khz
I/ThermalEngine( 293): Mitigation:CPU[2]:2265600 Khz
I/AudioService( 908): getStreamVolume 3 index 140
I/ThermalEngine( 293): Mitigation:CPU[1]:2265600 Khz
D/EnterpriseDeviceManager( 908): ContainerId: 0
V/ApplicationPolicy( 908): isApplicationStateBlocked userId 0 pkgname com.newyorktimes
--------- beginning of /dev/log/system
W/ActivityManager( 908): mDVFSHelper.acquire()
I/SurfaceFlinger( 268): id=139 createSurf (16x16),-1 flag=20004, EimLayer
I/SurfaceFlinger( 268): id=140 createSurf (16x16),-1 flag=20004, EimLayer
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1197): handleKeyguardVisibilityChanged(1)
D/PhoneStatusBar( 1197): setTransGradationMode=false, mTransparentMode=false, mSemiTransparentMode=false, mMultiWindowMode=false
D/StatusBarManagerService( 908): tr p:908,o:f
I/SurfaceFlinger( 268): id=141 createSurf (1x1),1 flag=404, oewyorktime
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1197): handleKeyguardVisibilityChanged(1)
V/SmartFaceService - 3rd party pause( 908): onReceive [android.intent.action.ACTIVITY_STATE/com.sec.android.app.launcher/pause]
D/Launcher.HomeView( 1432): onPause
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1197): handleKeyguardVisibilityChanged(1)
D/PointerIcon( 908): setMouseIconStyle1 pointerType: 1001iconType:101 flag:0
D/PointerIcon( 908): setMouseCustomIcon IconType is same.101
D/PointerIcon( 908): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0
D/PointerIcon( 908): setHoveringSpenCustomIcon IconType is same.1
V/TaskCloserActivity(24486): TaskCloserActivity onReceive() - com.sec.android.intent.action.HOME_PAUSE
I/SELinux (24566): Function: selinux_android_load_priority [0], There is no sepolicy file.
I/SELinux (24566):
I/SELinux (24566): Function: selinux_android_load_priority [1], There is no sepolicy version file.
I/SELinux (24566):
I/SELinux (24566): Function: selinux_android_load_priority , priority version is VE=SEPF_SC-02F_4.4.2_0016
I/SELinux (24566):
I/SELinux (24566):
E/dalvikvm(24566): >>>>> Normal User
E/dalvikvm(24566): >>>>> com.newyorktimes [ userId:0 | appId:10255 ]
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1197): handleKeyguardVisibilityChanged(1)
D/ActivityThread(24566): Unable to add TimaKesytore provider
W/System.err(24566): java.lang.ClassNotFoundException: com.sec.tima.TimaKeyStoreProvider
W/System.err(24566): at java.lang.Class.classForName(Native Method)
W/System.err(24566): at java.lang.Class.forName(Class.java:251)
W/System.err(24566): at java.lang.Class.forName(Class.java:216)
W/System.err(24566): at android.app.ActivityThread.main(ActivityThread.java:5562)
W/System.err(24566): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(24566): at java.lang.reflect.Method.invoke(Method.java:515)
W/System.err(24566): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
W/System.err(24566): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
W/System.err(24566): at dalvik.system.NativeStart.main(Native Method)
W/System.err(24566): Caused by: java.lang.NoClassDefFoundError: com/sec/tima/TimaKeyStoreProvider
W/System.err(24566): ... 9 more
W/System.err(24566): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sec.tima.TimaKeyStoreProvider" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
W/System.err(24566): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:67)
W/System.err(24566): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
W/System.err(24566): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
W/System.err(24566): ... 9 more
V/WindowOrientationListener( 908): mSContextAutoRotationListener.getProposedRotation, mbResultFaceDectection: false
V/WindowOrientationListener( 908): mSContextAutoRotationListener.getProposedRotation, Rotation: -1
V/WindowOrientationListener( 908): mSContextAutoRotationListener.getProposedRotation, mbResultFaceDectection: false
V/WindowOrientationListener( 908): mSContextAutoRotationListener.getProposedRotation, Rotation: -1
D/Launcher.HomeView( 1432): onStop
V/WindowManager( 908): rotationForOrientationLw(orient=-1, last=0); user=0 USER_ROTATION_LOCKED sensorRotation=-1 mLidState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false gripRotationLock=false
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1197): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1197): handleKeyguardVisibilityChanged(1)
D/EnterpriseDeviceManager( 908): ContainerId: 0
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
D/STATUSBAR-StatusBarManagerService( 908): manageDisableList what=0x0 pkg=WindowManager.LayoutParams
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1197): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 1197): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor( 1197): handleKeyguardVisibilityChanged(1)
D/Launcher( 1432): onTrimMemory. Level: 20
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
V/SmartFaceService - 3rd party pause( 908): onReceive [android.intent.action.ACTIVITY_STATE/com.newyorktimes/create]
D/KeyguardUpdateMonitor( 1197): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 1197): handleKeyguardVisibilityChanged(1)
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
I/AudioService( 908): getStreamVolume 3 index 140
V/fb-UnpackingSoSource(24566): locked dso store /data/data/com.newyorktimes/lib-main
I/fb-UnpackingSoSource(24566): dso store is up-to-date: /data/data/com.newyorktimes/lib-main
V/fb-UnpackingSoSource(24566): releasing dso store lock for /data/data/com.newyorktimes/lib-main
I/dalvikvm(24566): Could not find method android.provider.Settings.canDrawOverlays, referenced from method com.facebook.react.ReactActivityDelegate.onActivityResult
W/dalvikvm(24566): VFY: unable to resolve static method 682: Landroid/provider/Settings;.canDrawOverlays (Landroid/content/Context;)Z
D/dalvikvm(24566): VFY: replacing opcode 0x71 at 0x0028
I/dalvikvm(24566): Could not find method android.provider.Settings.canDrawOverlays, referenced from method com.facebook.react.ReactActivityDelegate.onCreate
W/dalvikvm(24566): VFY: unable to resolve static method 682: Landroid/provider/Settings;.canDrawOverlays (Landroid/content/Context;)Z
D/dalvikvm(24566): VFY: replacing opcode 0x71 at 0x0015
I/dalvikvm(24566): Could not find method android.app.Activity.requestPermissions, referenced from method com.facebook.react.ReactActivityDelegate.requestPermissions
W/dalvikvm(24566): VFY: unable to resolve virtual method 26: Landroid/app/Activity;.requestPermissions ([Ljava/lang/String;I)V
D/dalvikvm(24566): VFY: replacing opcode 0x6e at 0x0006
D/KeyguardUpdateMonitor( 1197): handleKeyguardVisibilityChanged(1)
I/PersonaManager(24566): getPersonaService() name persona_policy
D/ReactNative(24566): ReactInstanceManager.ctor()
D/ReactNative(24566): ReactInstanceManager.createReactContextInBackground()
D/ReactNative(24566): ReactInstanceManager.recreateReactContextInBackgroundInner()
D/ReactNative(24566): ReactInstanceManager.recreateReactContextInBackgroundFromBundleLoader()
D/ReactNative(24566): ReactInstanceManager.recreateReactContextInBackground()
D/ReactNative(24566): ReactInstanceManager.runCreateReactContextOnNewThread()
D/dalvikvm(24566): Trying to load lib /data/app-lib/com.newyorktimes-23/libreactnativejni.so 0x42a7ddd0
D/dalvikvm(24566): Added shared lib /data/app-lib/com.newyorktimes-23/libreactnativejni.so 0x42a7ddd0
D/StatusBarManagerService( 908): tr p:24566,o:f
D/dalvikvm(24566): Trying to load lib /data/app-lib/com.newyorktimes-23/libfb.so 0x42a7ddd0
D/dalvikvm(24566): Added shared lib /data/app-lib/com.newyorktimes-23/libfb.so 0x42a7ddd0
D/dalvikvm(24566): Trying to load lib /data/app-lib/com.newyorktimes-23/libfb.so 0x42a7ddd0
D/dalvikvm(24566): Shared lib '/data/app-lib/com.newyorktimes-23/libfb.so' already loaded in same CL 0x42a7ddd0
I/dalvikvm(24566): threadid=10: recursive native library load attempt (/data/app-lib/com.newyorktimes-23/libfb.so)
D/StatusBarManagerService( 908): semi p:24566,o:f
D/ReactNative(24566): ReactInstanceManager.createReactContext()
D/PhoneStatusBar( 1197): setTransGradationMode=false, mTransparentMode=false, mSemiTransparentMode=false, mMultiWindowMode=false
D/PhoneStatusBar( 1197): setSemiTransparentMode=false, mTransparentMode=false, mSemiTransparentMode=false, mMultiWindowMode=false
D/dalvikvm(24566): DexOpt: couldn't find field Landroid/view/ViewRootImpl;.mFlipControllerFallbackKeys
W/dalvikvm(24566): VFY: unable to resolve instance field 15318
D/dalvikvm(24566): VFY: replacing opcode 0x55 at 0x000e
D/dalvikvm(24566): DexOpt: couldn't find field Landroid/view/ViewRootImpl;.mFlipControllerFallbackKeys
W/dalvikvm(24566): VFY: unable to resolve instance field 15318
D/dalvikvm(24566): VFY: replacing opcode 0x55 at 0x0048
I/dalvikvm(24566): Could not find method android.view.View.setElevation, referenced from method com.facebook.react.uimanager.BaseViewManager.setElevation
W/dalvikvm(24566): VFY: unable to resolve virtual method 5957: Landroid/view/View;.setElevation (F)V
D/dalvikvm(24566): VFY: replacing opcode 0x6e at 0x000a
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
I/SurfaceFlinger( 268): id=142 createSurf (1080x1920),1 flag=404, NainActivit
I/dalvikvm(24566): Could not find method android.webkit.WebSettings.setMixedContentMode, referenced from method com.facebook.react.views.webview.ReactWebViewManager.setMixedContentMode
W/dalvikvm(24566): VFY: unable to resolve virtual method 6217: Landroid/webkit/WebSettings;.setMixedContentMode (I)V
D/dalvikvm(24566): VFY: replacing opcode 0x6e at 0x0015
I/dalvikvm(24566): Could not find method android.webkit.WebSettings.setMixedContentMode, referenced from method com.facebook.react.views.webview.ReactWebViewManager.setMixedContentMode
I/SpenGestureManager( 908): setFocusWindow21045
W/dalvikvm(24566): VFY: unable to resolve virtual method 6217: Landroid/webkit/WebSettings;.setMixedContentMode (I)V
D/dalvikvm(24566): VFY: replacing opcode 0x6e at 0x0026
I/dalvikvm(24566): Could not find method android.webkit.WebSettings.setMixedContentMode, referenced from method com.facebook.react.views.webview.ReactWebViewManager.setMixedContentMode
W/dalvikvm(24566): VFY: unable to resolve virtual method 6217: Landroid/webkit/WebSettings;.setMixedContentMode (I)V
D/dalvikvm(24566): VFY: replacing opcode 0x6e at 0x0037
I/dalvikvm(24566): Could not find method android.webkit.CookieManager.setAcceptThirdPartyCookies, referenced from method com.facebook.react.views.webview.ReactWebViewManager.setThirdPartyCookiesEnabled
D/KeyguardUpdateMonitor( 1197): sendKeyguardVisibilityChanged(true)
W/dalvikvm(24566): VFY: unable to resolve virtual method 6200: Landroid/webkit/CookieManager;.setAcceptThirdPartyCookies (Landroid/webkit/WebView;Z)V
D/dalvikvm(24566): VFY: replacing opcode 0x6e at 0x000a
D/PointerIcon( 908): setMouseIconStyle1 pointerType: 1001iconType:101 flag:0
D/PointerIcon( 908): setMouseCustomIcon IconType is same.101
D/PointerIcon( 908): setHoveringSpenIconStyle1 pointerType: 10001iconType:1 flag:0
D/PointerIcon( 908): setHoveringSpenCustomIcon IconType is same.1
I/Adreno-EGL(24566):
Hello, I found the solution. This issue happens due to old React Native syntax In Android log cat , there is an error line:
com.facebook.react.common.JavascriptException: undefined is not an object (evaluating 's.View.propTypes.style'), stack:
=> my solution is:
import { SytleSheet, View, ViewPropTypes, } from 'react-native';
NewsFeed.propTypes = { news: PropTypes.arrayOf(PropTypes.object), // instead of listStyles: View.propTypes.style listStyles: ViewPropTypes.style };
Description
cannot test release variant on android.
Reproduction
in console at root of project run
react-native run-android --variant=release
JS server already running. Running /usr/local/opt/android-sdk/platform-tools/adb -s 192.168.56.101:5555 reverse tcp:8081 tcp:8081 Building and installing the app on the device (cd android && ./gradlew installReleaseDebug)... Incremental java compilation is an incubating feature.
FAILURE: Build failed with an exception.
What went wrong: Task 'installReleaseDebug' not found in root project 'mysupercoolapp'.
Try: Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Solution
I can get it to work doing
cd android && ./gradlew installRelease
. Maybe the react-native command needs to be remapped to a different gradle command?Additional Information
Someone else got this 7 hours ago on SO as well: http://stackoverflow.com/questions/41263330/error-running-react-native-run-android-variant-release-task-installreleasede