Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/180.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 无法使用emulator,使用react native和expo_Android_React Native_Expo - Fatal编程技术网

Android 无法使用emulator,使用react native和expo

Android 无法使用emulator,使用react native和expo,android,react-native,expo,Android,React Native,Expo,我正在使用react native with expo,OS:Elemental OS,Emulator:Android Studio Emulator 尝试在emulator中打开应用程序时出现以下错误 12:58:16: Starting Android... Error running adb: Error running app. Error: Activity not started, unable to resolve Intent { act=android.intent.acti

我正在使用react native with expo,OS:Elemental OS,Emulator:Android Studio Emulator

尝试在emulator中打开应用程序时出现以下错误

12:58:16: Starting Android...
Error running adb: Error running app. Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=exp://192.168.0.101:19000 flg=0x10000000 }


 › Press a to open Android device or emulator, or i to open iOS emulator.
 › Press q to display QR code.
 › Press r to restart packager, or R to restart packager and clear cache.
 › Press d to toggle development mode. (current mode: development)

(node:15266) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of null
    at /xdl/src/Android.js:90:18
    at Generator.next (<anonymous>)
    at step (/home/afzal/AFZAL/Cloud_Drive/Development/React Native/react-native-boilerplate-redux-flow-master/node_modules/xdl/build/Android.js:475:191)
    at /home/afzal/AFZAL/Cloud_Drive/Development/React Native/react-native-boilerplate-redux-flow-master/node_modules/xdl/build/Android.js:475:361
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:160:7)
(node:15266) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
12:58:16:启动Android。。。
运行adb时出错:运行应用程序时出错。错误:活动未启动,无法解析Intent{act=android.Intent.action.VIEW dat=exp://192.168.0.101:19000 flg=0x10000000}
›按a键打开Android设备或模拟器,或按i键打开iOS模拟器。
›按q键显示二维码。
›按r键重新启动分装机,或按r键重新启动分装机并清除缓存。
›按d键切换开发模式。(当前模式:发展)
(节点:15266)未处理的PromisejectionWarning:TypeError:无法读取null的属性“length”
at/xdl/src/Android.js:90:18
在Generator.next()处
在步骤(/home/afzal/afzal/Cloud_Drive/Development/React Native/React Native样板文件redux flow master/node_modules/xdl/build/Android.js:475:191)
at/home/afzal/afzal/Cloud_Drive/Development/React Native/React Native样板文件redux flow master/node_modules/xdl/build/Android.js:475:361
在
在进程中。_tick回调(内部/process/next_tick.js:160:7)
(节点:15266)未处理的PromisejectionWarning:未处理的承诺拒绝。此错误源于在没有catch块的异步函数中抛出,或者拒绝未使用.catch()处理的承诺。(拒绝id:1)

下载世博会XDE并从XDE创建项目

通过pc和手机中相同的wifi连接运行应用程序,或者您可以使用数据线连接

对于Emulator,首先启动Emulator,然后运行应用程序 您可以将genymotion用于Emulator