我对本机(版本0.59.4)版本APK有问题。
该应用程序在调试模式下运行良好,但在发布模式下立即崩溃,从logcat得到了这些消息,可能是导致此问题的原因
2019-05-30 09:45:38.632 1150-1263/? E/View: focusableViewAvailable: current thread is android.anim, return!
2019-05-30 09:45:38.649 2852-6156/? E/[HwRecSys]HwRecSysService: getIsRportDirectService is false!
2019-05-30 09:45:38.717 1150-7764/? E/ReportTools: This is not beta user build
2019-05-30 09:45:38.728 2852-6156/? E/[HwRecSys]HwRecSysService: getIsRportDirectService is false!
2019-05-30 09:45:38.852 1771-13995/? E/HsmCoreServiceImpl: onTransact in code is: 103.
组装发布日志如下:
无法重新使用启动Gradle守护程序,1个不兼容的守护程序和1个已停止的守护程序,请使用--status获取详细信息
配置项目:react-native-navigation 下载RobolectricDependencies D:\ svn \ Inspection-Tool \ code \ MobileApp \ trunk \ InspectionTool \ android \ build / robolectric-dependencies
任务:react-native-maps:compileReleaseJavaWithJavac 注意:某些输入文件使用或覆盖不推荐使用的API。 注意:有关详细信息,请使用-Xlint:deprecation重新编译。 注意:某些输入文件使用未经检查或不安全的操作。 注意:重新编译-Xlint:unchecked以获得详细信息。
任务:react-native-navigation:compileReleaseJavaWithJavac 注意:某些输入文件使用或覆盖不推荐使用的API。 注意:有关详细信息,请使用-Xlint:deprecation重新编译。 注意:某些输入文件使用未经检查或不安全的操作。 注意:重新编译-Xlint:unchecked以获得详细信息。
任务:app:bundleReleaseJsAndAssets 警告:转换缓存已重置。 加载依赖图,完成。 info将捆绑输出输出到:,D:\ svn \ Inspection-Tool \ code \ MobileApp \ trunk \ InspectionTool \ android \ app \ build \ Generated \ assets \ react \ release \ index.android.bundle 信息完成写捆绑输出
在2m 36s内成功建成 179个可执行任务:已执行166个,最新13个
Package.json文件
{
"name": "basicApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"android": "react-native run-android",
"ios": "react-native run-ios"
},
"dependencies": {
"@react-native-community/async-storage": "^1.3.4",
"@react-native-community/viewpager": "^1.1.7",
"@valdio/react-native-scrollable-tabview": "^0.8.11",
"moment": "^2.24.0",
"react": "16.8.3",
"react-moment": "^0.9.2",
"react-native": "0.59.4",
"react-native-animatable": "^1.3.2",
"react-native-collapsible": "^1.4.0",
"react-native-collapsible-list": "^1.0.0",
"react-native-image-picker": "^0.28.1",
"react-native-maps": "^0.24.2",
"react-native-material-dropdown": "^0.11.1",
"react-native-modal-datetime-picker": "^7.4.0",
"react-native-navigation": "^1.1.493",
"react-native-scrollable-tab-view": "^0.10.0",
"react-native-sqlite-storage": "^3.3.10",
"react-native-vector-icons": "^6.4.2",
"react-redux": "^7.0.2",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0"
},
"devDependencies": {
"@babel/core": "7.4.3",
"@babel/runtime": "7.4.3",
"babel-jest": "24.7.1",
"jest": "24.7.1",
"metro-react-native-babel-preset": "0.53.1",
"react-test-renderer": "16.8.3"
},
"jest": {
"preset": "react-native",
"setupFiles": [
"./jestSetup/jestSetupFile.js"
]
}
}
-编辑的日志---
2019-05-30 11:53:15.525 1150-1263/? E/View: focusableViewAvailable: current thread is android.anim, return!
2019-05-30 11:53:15.525 1150-1263/? E/View: focusableViewAvailable: current thread is android.anim, return!
2019-05-30 11:53:15.555 2852-6156/? E/[HwRecSys]HwRecSysService: getIsRportDirectService is false!
2019-05-30 11:53:15.603 1150-7764/? E/ReportTools: This is not beta user build
2019-05-30 11:53:15.678 2852-6156/? E/[HwRecSys]HwRecSysService: getIsRportDirectService is false!
2019-05-30 11:53:15.755 1150-6006/? E/RMS.HwSysResManagerService: Process Permission error! pid:1810 uid:1001 Process.myPid:1150
2019-05-30 11:53:15.777 1150-2110/? E/RMS.HwSysResManagerService: Process Permission error! pid:1810 uid:1001 Process.myPid:1150
2019-05-30 11:53:15.782 1771-8437/? E/HsmCoreServiceImpl: onTransact in code is: 103
2019-05-30 11:53:15.842 1150-1263/? E/WindowManager: win=Window{9633689 u0 Splash Screen com.wtitool EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true
2019-05-30 11:53:16.321 1150-1726/? E/HwReportTool: This is not beta user build
2019-05-30 11:53:16.326 1150-1726/? E/HwReportTool: This is not beta user build
2019-05-30 11:53:16.461 1150-1263/? E/View: focusableViewAvailable: current thread is android.anim, return!
2019-05-30 11:53:16.461 1150-1263/? E/View: focusableViewAvailable: current thread is android.anim, return!
2019-05-30 11:53:16.478 2852-6156/? E/[HwRecSys]HwRecSysService: getIsRportDirectService is false!
2019-05-30 11:53:16.556 1150-7764/? E/ReportTools: This is not beta user build
2019-05-30 11:53:16.627 2852-6156/? E/[HwRecSys]HwRecSysService: getIsRportDirectService is false!
2019-05-30 11:53:16.733 1771-8437/? E/HsmCoreServiceImpl: onTransact in code is: 103
2019-05-30 11:53:16.746 1150-1263/? E/WindowManager: win=Window{fec2552 u0 Splash Screen com.wtitool EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true
2019-05-30 11:53:17.045 14478-21090/? E/WakeLock: GCM_HB_ALARM release without a matched acquire!
2019-05-30 11:53:17.063 14478-14556/? E/ExecutionCriteria: Package unavailable for task: com.facebook.katana/com.facebook.api.feedcache.resync.NewsFeedCacheInvalidationGCMService{u=0 tag="NewsFeedCacheInvalidationGCMService" trigger=window{start=43200s,end=43230s,earliest=-44033370s,latest=-44033340s} requirements=[NET_CONNECTED] attributes=[PERSISTED] scheduled=-44076570s last_run=N/A jid=N/A status=PENDING retries=0 client_lib=MANCHEGO_GCM-11020000}
2019-05-30 11:53:17.250 14478-14556/? E/ExecutionCriteria: Package unavailable for task: com.facebook.katana/com.facebook.api.feedcache.resync.NewsFeedCacheInvalidationGCMService{u=0 tag="NewsFeedCacheInvalidationGCMService" trigger=window{start=43200s,end=43230s,earliest=-44033370s,latest=-44033340s} requirements=[NET_CONNECTED] attributes=[PERSISTED] scheduled=-44076570s last_run=N/A jid=N/A status=PENDING retries=0 client_lib=MANCHEGO_GCM-11020000}
2019-05-30 11:53:17.276 1150-1726/? E/HwReportTool: This is not beta user build
2019-05-30 11:53:17.281 1150-1726/? E/HwReportTool: This is not beta user build