简体   繁体   中英

react-native running app on device with playstore support

I am testing out react-native-maps. The lib requires google play service to be installed on the device.

I was able to download an image for a device with api lvl 24 ()and play service) and created an android emulator.

Problem is when I try to execute 'react-native run-android' I get an error telling me that no device is connected(while the emulator is up and running).

Another thing I noticed is that I can only start the emulator from within Android studio. The emulator cannot be used from the avd manager that was started via the command line. It shows up but all its properties are a "?" and when i check details i see this under Error:

Unknown tartget 'android-24' in C:\\Users....android\\avd\\device.ini

我建议您使用https://www.genymotion.com/ ,您可以免费使用它,并且从2.10.0版本开始支持Google Play服务(Play商店)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM