-
Notifications
You must be signed in to change notification settings - Fork 11
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
[BUG] android build packaging could not resolve io.openim:core-sdk #27
Comments
根据错误日志,构建失败的主要原因是无法下载 io.openim:core-sdk:3.8.1-rc.0 依赖项,具体表现为连接超时(Connect timed out)。这是由于构建过程中访问 https://open-im-online.rentsoft.cn:51000/repository/maven2 的请求没有成功,可能是由于网络问题或目标服务器不响应。 以下是一些可能的解决方案:
|
Try removing the following code, because it has recently migrated to
|
我需要怎么配置? // Top-level build file where you can add configuration options common to all sub-projects/modules.
} apply plugin: "com.facebook.react.rootproject" allprojects {
} dependencies { |
以下是报错信息
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD FAILED in 17s |
Go to node_modules and remove all maven dependencies from the SDK, and remove all maven dependencies from the APP code. Since |
这好像是core-sdk-3.8.1-rc.0 下载错误,点击链接没有访问,需要怎么解决
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD FAILED in 18s |
以下是node_module andorid的配置
} apply plugin: 'com.android.library' def safeExtGet(prop, fallback) { android {
} repositories { dependencies { allprojects { / |
Some older versions were removed during the migration, please check the repository to determine which versions are currently available. |
怎么替换这些镜像源? |
具体怎么操作 |
Install the latest version and remove these dependencies |
OpenIM Server Version
3.7.1
Operating System and CPU Architecture
Linux (AMD)
Deployment Method
Source Code Deployment
Bug Description and Steps to Reproduce
Running 'gradlew :app:assembleRelease' in /home/expo/workingdir/build/android
Downloading https://services.gradle.org/distributions/gradle-8.3-all.zip
10%.
20%.
30%
40%.
50%
60%
70%.
80
%.
90%.
100%
Welcome to Gradle 8.3!
Here are the highlights of this release:
For more details see https://docs.gradle.org/8.3/release-notes.html
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.3/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
Could not determine the dependencies of task ':app:lintVitalReportRelease'.
Connect to open-im-online.rentsoft.cn:51000 [open-im-online.rentsoft.cn/43.154.157.177] failed: Connect timed out
Run with
--stacktrace
option to get the stack trace.
Run with
--info
or
--debug
option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
BUILD FAILED in 3m 53s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
10 actionable tasks: 10 executed
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
Screenshots Link
https://open-im-online.rentsoft.cn:51000/repository/maven2/
The text was updated successfully, but these errors were encountered: