RN 打包的release apk输入登录账户和密码之后页面卡住不动了?

特别说明

debug环境下一切正常,能够正常登录,各项功能也正常。

使用./gradlew assembleRelease命令打包也正常,且能成功安装到和模拟器和真机上,启动正常。输入账号 & 密码之后页面卡住了。

使用logcat抓取到的日志:

07-06 15:29:29.169 E/unknown:ReactNative( 5228): Unable to launch logbox because react was unable to create the root view

07-06 15:29:30.160 E/KernelCpuSpeedReader( 537): Failed to read cpu-freq: /sys/devices/system/cpu/cpu1/cpufreq/stats/time_in_state: open failed: ENOENT (No such file or directory)

07-06 15:29:46.455 E/ReactNativeJS( 5228): Error: Objects are not valid as a React child (found: TypeError: Network request failed).

07-06 15:29:46.467 E/unknown:ReactNative( 5228): Error: Objects are not valid as a React child (found: TypeError: Network request failed).

07-06 15:29:48.504 E/WakeLock( 1127): GCM_CONN_ALARM ** IS FORCE-RELEASED ON TIMEOUT **

07-06 15:30:00.094 E/BcSmartspaceCard( 975): No tap action can be set up

07-06 15:30:03.641 E/WakeLock( 1127): GCM_HB_ALARM release without a matched acquire!

07-06 15:31:00.044 E/BcSmartspaceCard( 975): No tap action can be set up

07-06 15:31:23.798 E/android.hardware.power.stats@1.0-service-mock( 358): Failed to getEnergyData

07-06 15:31:54.719 E/WakeLock( 1127): GCM_HB_ALARM release without a matched acquire!

07-06 15:32:00.044 E/BcSmartspaceCard( 975): No tap action can be set up

望各位大神不吝赐教,这个打包问题比较着急!!!谢谢。


回答:

1.第一个问题是你的依赖问题还有原生模块引入的不对,React Native没法创建根视图
2.网络请求,你应该处理错误,不是显示错误对象。
3.系统无法读取CPU频率。这可能是由于设备不支持这个功能,或者路径不对

以上是 RN 打包的release apk输入登录账户和密码之后页面卡住不动了? 的全部内容, 来源链接: utcz.com/p/945240.html

回到顶部