ctripcorp / CRN

CRN是Ctrip React Native简称,由携程无线平台研发团队基于React Native框架优化,定制成稳定性和性能更佳、也更适合业务场景的跨平台开发框架。
MIT License
1.46k stars 208 forks source link

添加x86架构支持 #30

Open puti94 opened 5 years ago

puti94 commented 5 years ago

希望crn-cli 模块的模板 安卓app的gradle 开发模式能添加x86架构,能在模拟器上运行

hu-qi commented 5 years ago

实测有效! 修改前run-android报错: image 刚好之前看到您有提交这个PR,我开的是Nexus_5X_API_19(AVD) - 4.4.2,好像是x86的,原来的.gradle里边不支持。 修改后,成功启动: image 但还是有问题,求大佬指点:

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 }
puti94 commented 5 years ago

可以运行应该就没问题了吧,WARNING可以不用管

hu-qi commented 5 years ago

可以运行应该就没问题了吧,WARNING可以不用管

这个warning导致服务直接被结束掉了 image 可能和我的安卓环境有关