Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native项目 Android端 不支持AndroidX吗 #5095

Closed
Leavds opened this issue Dec 16, 2019 · 8 comments
Closed

React Native项目 Android端 不支持AndroidX吗 #5095

Leavds opened this issue Dec 16, 2019 · 8 comments
Assignees

Comments

@Leavds
Copy link

Leavds commented Dec 16, 2019

问题描述

复现步骤

如题,React Native项目 Android端 不支持AndroidX吗

/**
 * 这段注释后可以贴代码
 * 提供完整可复现的代码和整理好代码格式,有助于我们快速定位问题,节省你我时间
 * 代码提供不全或代码格式混乱的 issues 【有可能会被忽略】
 * 
 * 查看如何插入代码:https://coding.net/help/doc/project/markdown.html#i-5
 */

期望行为

报错信息

系统信息

补充信息

如果您有功能上的建议,可以提到 FeatHub

使用上的问题,欢迎在「Taro 社区」一起交流

@taro-bot
Copy link

taro-bot bot commented Dec 16, 2019

CC @Pines-Cheng

@taro-bot
Copy link

taro-bot bot commented Dec 16, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@Leavds
Copy link
Author

Leavds commented Dec 17, 2019

试了下 不yarn 引入rn的moudle仅仅Android项目转x是有问题的,yarn 编译全部moudle成功后,转Androidx 是可以的。不知道有没有问题。

@Leavds
Copy link
Author

Leavds commented Dec 17, 2019

就第一次成功的 后面 node_modules 的部分 Android moudle 里面的gradle版本 低于3.2 ,手动去改 好多个,额看来 还是不支持Androidx啊。但是好多库 appcompat的 都不维护了

@Pines-Cheng
Copy link
Contributor

Taro 默认是基于 RN 0.55.4,而 React Native 0.60+ 才支持 AndroidX。

@Leavds
Copy link
Author

Leavds commented Dec 18, 2019

oo 那升级Androidx 会引起Taro的适配问题吗?

@Pines-Cheng
Copy link
Contributor

Taro 最终还是会转换成 RN,RN 没影响 Taro 就没影响。

@Leavds
Copy link
Author

Leavds commented Dec 19, 2019

举个例子 expo-av 这个包的是壳子里带的版本, 版本低了 最新的是8.0的,手动更改,会影响壳子的功能么,我全部升级的话

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants