Open puti94 opened 5 years ago
实测有效! 修改前run-android报错: 刚好之前看到您有提交这个PR,我开的是Nexus_5X_API_19(AVD) - 4.4.2,好像是x86的,原来的.gradle里边不支持。 修改后,成功启动: 但还是有问题,求大佬指点:
info Running D:\test\AndroidStudio/platform-tools/adb -s emulator-5554 reverse tcp:8081 tcp:8081
adb.exe: error: closed
info Could not run adb reverse: Command failed: D:\test\AndroidStudio/platform-tools/adb -s emulator-5554 reverse tcp:8081 tcp:8081
info Starting the app on emulator-5554 (D:\test\AndroidStudio/platform-tools/adb -s emulator-5554 shell am start -n ctrip.wireless.android.crn/ctrip.wireless.android.crn.MainActivity)...
WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
Starting: Intent { cmp=ctrip.wireless.android.crn/.MainActivity }
可以运行应该就没问题了吧,WARNING可以不用管
可以运行应该就没问题了吧,WARNING可以不用管
这个warning导致服务直接被结束掉了 可能和我的安卓环境有关
希望crn-cli 模块的模板 安卓app的gradle 开发模式能添加x86架构,能在模拟器上运行