Android Genymotion:“;不幸的是<;应用程序>;“已经停止”;

Android Genymotion:“;不幸的是<;应用程序>;“已经停止”;,android,react-native,genymotion,Android,React Native,Genymotion,我已经在React Native中创建了一个在iOS中运行良好的应用程序。我已经将代码复制到它的Android部分,并分离出特定于平台的组件。当我点击某个组件时,应用程序崩溃,并显示“不幸已停止” 没有日志,控制台中没有错误,什么都没有。我要找什么?我可以在哪里找?日志?代码中的某个地方 在~/genymotion log/Google Nexus 6-logcat.txt中,我看到了以下内容: 05-15 23:50:14.379 D/OpenGLRenderer( 620): Use EG

我已经在React Native中创建了一个在iOS中运行良好的应用程序。我已经将代码复制到它的Android部分,并分离出特定于平台的组件。当我点击某个组件时,应用程序崩溃,并显示“不幸已停止”

没有日志,控制台中没有错误,什么都没有。我要找什么?我可以在哪里找?日志?代码中的某个地方

在~/genymotion log/Google Nexus 6-logcat.txt中,我看到了以下内容:

05-15 23:50:14.379 D/OpenGLRenderer(  620): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
05-15 23:50:14.380 D/Atlas   (  620): Validating map...
05-15 23:50:14.429 I/OpenGLRenderer(  620): Initialized EGL, version 1.4
05-15 23:50:14.429 D/        (  620): HostConnection::get() New Host Connection established 0xaf31ca40, tid 1876
05-15 23:50:14.463 D/OpenGLRenderer(  620): Enabling debug mode 0
05-15 23:50:14.489 W/EGL_emulation(  620): eglSurfaceAttrib not implemented
05-15 23:50:14.490 W/OpenGLRenderer(  620): Failed to set EGL_SWAP_BEHAVIOR on surface 0x9e45dfc0, error=EGL_SUCCESS
05-15 23:50:14.490 W/EGL_emulation(  941): eglSurfaceAttrib not implemented
05-15 23:50:14.490 W/OpenGLRenderer(  941): Failed to set EGL_SWAP_BEHAVIOR on surface 0xb43e44a0, error=EGL_SUCCESS
05-15 23:50:14.952 I/ActivityManager(  620): Killing 1492:com.android.onetimeinitializer/u0a10 (adj 15): empty #17
05-15 23:50:15.219 W/OpenGLRenderer(  941): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
05-15 23:50:15.440 W/ResourceType(  724): No package identifier when getting value for resource number 0x00000000
05-15 23:50:15.442 W/PackageManager(  724): Failure retrieving resources for com.bidsmart: Resource ID #0x0
05-15 23:50:18.400 W/AudioTrack(  620): AUDIO_OUTPUT_FLAG_FAST denied by client
05-15 23:50:18.424 I/Process ( 1805): Sending signal. PID: 1805 SIG: 9
05-15 23:50:18.463 D/OpenGLRenderer(  620): endAllStagingAnimators on 0xa1a6f780 (RippleDrawable) with handle 0xaf3be470
05-15 23:50:18.468 I/ActivityManager(  620): Process com.bidsmart (pid 1805) has died
05-15 23:50:18.472 W/InputMethodManagerService(  620): Got RemoteException sending setActive(false) notification to pid 1805 uid 10061

没有修复,但原因是我将太多的数据从服务器推送到客户端。运行adb logcat后,我发现:

java.lang.OutOfMemoryError:无法分配2470012字节的分配,其中48508个可用字节和47KB直到OOM

结果是我把我的图像一次又一次地推给客户,直到它崩溃。iOS可以处理,但RN不能


链接到StackOverflow相关线程:

您是否正在尝试连接应用程序@Nathan Hyland中的端口。真的不知道这意味着什么。物理端口?要明确的是,该应用程序会一直工作,直到你点击其中一个组件,其中还有一些嵌套组件。是的@Nathan HylandNope,只是显示一个滚动视图。在调试android应用程序时,可以使用命令“adb logcat”查看本机应用程序层的日志,这在查找问题时非常有用