Скачал genemotion, в biose врубил виртуализацию процессора, скачал образ nexus 5x. Вот думаю , щас все получится , ан нет.
E:\AwesomeProject>react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 863 file(s) to forward-jetify. Using 3 workers...
info Starting JS server...
info Installing the app...
> Task :app:installDebug
10:38:36 V/ddms: execute: running am get-config
10:38:37 V/ddms: execute 'am get-config' on '192.168.11.105:5555' : EOF hit. Read: -1
10:38:37 V/ddms: execute: returning
Installing APK 'app-debug.apk' on 'Google Nexus 5X - 6.0' for app:debug
10:38:37 D/app-debug.apk: Uploading app-debug.apk onto device '192.168.11.105:5555'
10:38:37 D/Device: Uploading file onto device '192.168.11.105:5555'
10:38:37 D/ddms: Reading file permision of E:\AwesomeProject\android\app\build\outputs\apk\debug\app-debug.apk as: rwx------
10:38:39 V/ddms: execute: running pm install -r -t "/data/local/tmp/app-debug.apk"
10:38:52 V/ddms: execute 'pm install -r -t "/data/local/tmp/app-debug.apk"' on '192.168.11.105:5555' : EOF hit. Read: -1
10:38:52 V/ddms: execute: returning
10:38:52 V/ddms: execute: running rm "/data/local/tmp/app-debug.apk"
10:38:52 V/ddms: execute 'rm "/data/local/tmp/app-debug.apk"' on '192.168.11.105:5555' : EOF hit. Read: -1
10:38:52 V/ddms: execute: returning
Installed on 1 device.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 28s
27 actionable tasks: 2 executed, 25 up-to-date
info Connecting to the development server...
info Starting the app on "192.168.11.105:5555"...
Starting: Intent { cmp=com.awesomeproject/.MainActivity }
node js:
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
│ Running Metro Bundler on port 8081. │
│ │
│ Keep Metro running while developing on any JS projects. Feel free to │
│ close this tab and run your own Metro instance if you prefer. │
│ │
│ https://github.com/facebook/react-native │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
E:\AwesomeProject
Loading dependency graph, done.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (457/457), done.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
BUNDLE [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
Приложение запускается но каждый раз сворачивается и выходит окно Unfortunately, awesome project has stopped. каждый раз когда я его пытаюсь открыть в node js появляется новая строка с загрузкой index js.
несколько последних строк из adb logcat:
10-05 15:48:18.520 599 2391 W ActivityManager: at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:12129)
10-05 15:48:18.520 599 2391 W ActivityManager: at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
10-05 15:48:18.524 262 262 E lowmemorykiller: Error opening /proc/2357/oom_score_adj; errno=2
10-05 15:48:18.534 599 599 W art : Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService.crashApplication(com.android.server.am.ProcessRecord, android.app.ApplicationErrorReport$CrashInfo) from ActivityManagerService.java:12568 waiters=0 for 276ms
10-05 15:48:18.534 599 918 W libprocessgroup: failed to open /acct/uid_10060/pid_2357/cgroup.procs: No such file or directory
10-05 15:48:18.534 599 918 I ActivityManager: Process com.awesomeproject (pid 2357) has died
10-05 15:48:18.574 891 1261 W EGL_emulation: eglSurfaceAttrib not implemented
10-05 15:48:18.574 891 1261 W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xe126aa00, error=EGL_SUCCESS
10-05 15:48:18.619 599 1847 I OpenGLRenderer: Initialized EGL, version 1.4
10-05 15:48:18.836 599 1847 W EGL_emulation: eglSurfaceAttrib not implemented
10-05 15:48:18.837 599 1847 W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xd8fbe340, error=EGL_SUCCESS
10-05 15:48:19.205 891 1261 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
10-05 15:48:19.205 891 1261 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
10-05 15:48:19.344 599 618 W WindowAnimator: Failed to dispatch window animation state change.
10-05 15:48:19.344 599 618 W WindowAnimator: android.os.DeadObjectException
10-05 15:48:19.344 599 618 W WindowAnimator: at android.os.BinderProxy.transactNative(Native Method)
10-05 15:48:19.344 599 618 W WindowAnimator: at android.os.BinderProxy.transact(Binder.java:557)
10-05 15:48:19.344 599 618 W WindowAnimator: at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
10-05 15:48:19.344 599 618 W WindowAnimator: at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
10-05 15:48:19.344 599 618 W WindowAnimator: at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
10-05 15:48:19.344 599 618 W WindowAnimator: at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
10-05 15:48:19.344 599 618 W WindowAnimator: at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
10-05 15:48:19.344 599 618 W WindowAnimator: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
10-05 15:48:19.344 599 618 W WindowAnimator: at android.view.Choreographer.doCallbacks(Choreographer.java:670)
10-05 15:48:19.344 599 618 W WindowAnimator: at android.view.Choreographer.doFrame(Choreographer.java:603)
10-05 15:48:19.344 599 618 W WindowAnimator: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
10-05 15:48:19.344 599 618 W WindowAnimator: at android.os.Handler.handleCallback(Handler.java:739)
10-05 15:48:19.344 599 618 W WindowAnimator: at android.os.Handler.dispatchMessage(Handler.java:95)
10-05 15:48:19.344 599 618 W WindowAnimator: at android.os.Looper.loop(Looper.java:148)
10-05 15:48:19.344 599 618 W WindowAnimator: at android.os.HandlerThread.run(HandlerThread.java:61)
10-05 15:48:19.344 599 618 W WindowAnimator: at com.android.server.ServiceThread.run(ServiceThread.java:46)
10-05 15:48:22.346 599 1232 D NetlinkSocketObserver: NeighborEvent{elapsedMs=723772, 10.0.3.2, [525400123502], RTM_NEWNEIGH, NUD_REACHABLE}
10-05 15:48:26.221 599 1232 D NetlinkSocketObserver: NeighborEvent{elapsedMs=727647, 10.0.3.2, [525400123502], RTM_NEWNEIGH, NUD_STALE}
10-05 15:53:18.566 599 1847 E Surface : getSlotFromBufferLocked: unknown buffer: 0xde491840
10-05 15:53:18.585 599 1245 W InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 2357 uid 10060
10-05 15:53:18.763 599 618 W AppOps : Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
10-05 15:53:35.679 599 1245 I ActivityManager: START u0 {act=com.android.systemui.recents.SHOW_RECENTS flg=0x10804000 cmp=com.android.systemui/.recents.RecentsActivity} from uid 10016 on display 0
10-05 15:53:35.909 277 678 D genymotion_audio: out_write: pcm_write() with out_frames=557 frame_size=4 returned -EPIPE
10-05 15:53:35.927 891 1261 E Surface : getSlotFromBufferLocked: unknown buffer: 0xe8743960
10-05 15:53:36.004 1489 1587 W EGL_emulation: eglSurfaceAttrib not implemented
10-05 15:53:36.004 1489 1587 W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xee913c80, error=EGL_SUCCESS
10-05 15:53:37.790 599 918 I ActivityManager: START u0 {flg=0x10100000 cmp=com.awesomeproject/.MainActivity} from uid 0 on display 0
10-05 15:53:56.180 277 679 W AudioFlinger: write blocked for 19840 msecs, 3 delayed writes, thread 0xf1d40000