无法在 Android 台设备上 运行 应用程序 (Linux/Ubuntu)
Unable to run app on Android device (Linux/Ubuntu)
应用程序 运行s 与 Ubuntu 使用 android studio,它还 运行s 在我的 windows 10 上使用 react-native。
使用 react-native init 创建的新应用 运行 可以 ubuntu
但在我当前的应用程序上,react-native 运行-android 总是 returns 这个:
Running /home/lance/Android/Sdk/platform-tools/
adb -s 4d00550ff22a318d reverse tcp:8081 tcp:8081
adb server version (32) doesn't match this client (36); killing...
* daemon started successfully *
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
(node:5781) UnhandledPromiseRejectionWarning:
Unhandled promise rejection (rejection id: 2):
TypeError: Cannot read property 'message' of undefined
(node:5781) DeprecationWarning: Unhandled promise rejections are deprecated.
In the future, promise rejections that are not handled will
terminate the Node.js process with a non-zero exit code.
- 反应本机 0.40
- Ubuntu16.10 X64
- 三星 S4 (Android 5.0)
如有任何帮助,我们将不胜感激。
已通过向 gradelew 添加执行权限进行修复。
在终端中,在 react-native 项目文件夹中,运行
chmod +x android/gradlew
应用程序 运行s 与 Ubuntu 使用 android studio,它还 运行s 在我的 windows 10 上使用 react-native。
使用 react-native init 创建的新应用 运行 可以 ubuntu
但在我当前的应用程序上,react-native 运行-android 总是 returns 这个:
Running /home/lance/Android/Sdk/platform-tools/
adb -s 4d00550ff22a318d reverse tcp:8081 tcp:8081
adb server version (32) doesn't match this client (36); killing...
* daemon started successfully *
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
(node:5781) UnhandledPromiseRejectionWarning:
Unhandled promise rejection (rejection id: 2):
TypeError: Cannot read property 'message' of undefined
(node:5781) DeprecationWarning: Unhandled promise rejections are deprecated.
In the future, promise rejections that are not handled will
terminate the Node.js process with a non-zero exit code.
- 反应本机 0.40
- Ubuntu16.10 X64
- 三星 S4 (Android 5.0)
如有任何帮助,我们将不胜感激。
已通过向 gradelew 添加执行权限进行修复。
在终端中,在 react-native 项目文件夹中,运行
chmod +x android/gradlew