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 link 吧 #10

Closed
Zhou-Bill opened this issue Mar 26, 2021 · 9 comments
Closed

这个需要执行以下react-native link 吧 #10

Zhou-Bill opened this issue Mar 26, 2021 · 9 comments

Comments

@Zhou-Bill
Copy link

react-native link react-native-qq-lib ???

虽然link 但是打包失败了

@Zhou-Bill
Copy link
Author

image

@PBK-B
Copy link
Member

PBK-B commented Mar 27, 2021

@Zhou-Bill 还有详细点的日志嘛?只通过这截图我似乎定位不到错误

@Zhou-Bill
Copy link
Author

你好,请问这是什么原因??

image

@PBK-B
Copy link
Member

PBK-B commented Mar 29, 2021

@Zhou-Bill 你 react-native 版本多少,我这边尝试重现一下该问题

@Zhou-Bill
Copy link
Author

react-native: 0.63.4

是否需要进行 react-native link ?

@PBK-B
Copy link
Member

PBK-B commented Mar 29, 2021

react-native: 0.63.4

是否需要进行 react-native link ?

理论上是不需要的,我刚刚找了一下发现与 aliyun/aliyun-oss-react-native#70 出现的问题十分相似

@PBK-B
Copy link
Member

PBK-B commented Mar 29, 2021

@Zhou-Bill 我这边尝试创建一个新的 react-native 0.63.4 项目重现,但是好像并未出现该问题,你看有空帮忙弄一个空项目能重现该问题的代码仓库嘛?

下面是我打包时正常的日志输出:

PBK:android bin$ ./gradlew aR

> Configure project :react-native-qq-lib
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed in version 5.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

> Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
                 Welcome to React Native!
                Learn once, write anywhere


info Writing bundle output to:, /Volumes/tzmaxData/data/test/test_qq_module/android/app/build/generated/assets/react/release/index.android.bundle
info Writing sourcemap output to:, /Volumes/tzmaxData/data/test/test_qq_module/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 2 asset files
info Done copying assets

> Task :app:processReleaseMainManifest
[androidx.vectordrawable:vectordrawable-animated:1.0.0] /Users/bin/.gradle/caches/transforms-2/files-2.1/a3d70fc7ec641cd22191d41c9098d3d5/vectordrawable-animated-1.0.0/AndroidManifest.xml Warning:
        Package name 'androidx.vectordrawable' used in: androidx.vectordrawable:vectordrawable-animated:1.0.0, androidx.vectordrawable:vectordrawable:1.0.1.

> Task :react-native-qq-lib:compileReleaseJavaWithJavac
注: /Volumes/tzmaxData/data/test/test_qq_module/node_modules/react-native-qq-lib/android/src/main/java/cn/reactnative/modules/qq/QQModule.java使用或覆盖了已过时的 API。

BUILD SUCCESSFUL in 55s
59 actionable tasks: 59 executed

@Zhou-Bill
Copy link
Author

好像确实是我这边的问题,我这边的问题,我执行./gradlew app:assembleRelease 就没问题了。。 谢谢啊

@HaddyYang
Copy link

是这个库的build.gradle中minSdkVersion太旧了,可以设置为21

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

3 participants