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

couldn't run the demo code #34

Open
tmsbyim01 opened this issue Mar 8, 2024 · 7 comments
Open

couldn't run the demo code #34

tmsbyim01 opened this issue Mar 8, 2024 · 7 comments

Comments

@tmsbyim01
Copy link

What happened?

clone this code, when building in cell phone, then get some errors

org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':OUICore:debugCompileClasspath'.
org.gradle.internal.resolve.ArtifactResolveException: Could not download android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/android-sdk/3.5.1/android-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 111,093; received: 32,277)
org.gradle.internal.resolve.ArtifactResolveException: Could not download core-sdk-3.5.1.aar (io.openim:core-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/core-sdk/3.5.1/core-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 27,488,871; received: 32,275)
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':OUICore:debugCompileClasspath'.
org.gradle.internal.resolve.ArtifactResolveException: Could not download android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/android-sdk/3.5.1/android-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 111,093; received: 32,277)
org.gradle.internal.resolve.ArtifactResolveException: Could not download core-sdk-3.5.1.aar (io.openim:core-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/core-sdk/3.5.1/core-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 27,488,871; received: 32,275)
org.gradle.api.internal.tasks.properties.PropertyEvaluationException: Error while evaluating property 'annotationProcessorClassNames' of task ':OUIContact:javaPreCompileDebug'
org.gradle.api.internal.provider.AbstractProperty$PropertyQueryException: Failed to calculate the value of task ':OUIContact:javaPreCompileDebug' property 'annotationProcessorClassNames'.
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':OUIContact:debugRuntimeClasspath'.
org.gradle.api.internal.artifacts.transform.TransformException: Failed to transform android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.status=release}.
org.gradle.internal.resolve.ArtifactResolveException: Could not download android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/android-sdk/3.5.1/android-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 111,093; received: 32,277)
org.gradle.api.internal.tasks.properties.PropertyEvaluationException: Error while evaluating property 'annotationProcessorClassNames' of task ':OUICore:javaPreCompileDebug'
org.gradle.api.internal.provider.AbstractProperty$PropertyQueryException: Failed to calculate the value of task ':OUICore:javaPreCompileDebug' property 'annotationProcessorClassNames'.
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':OUICore:debugRuntimeClasspath'.
org.gradle.api.internal.artifacts.transform.TransformException: Failed to transform android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.status=release}.
org.gradle.internal.resolve.ArtifactResolveException: Could not download android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/android-sdk/3.5.1/android-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 111,093; received: 32,277)
org.gradle.api.internal.tasks.properties.PropertyEvaluationException: Error while evaluating property 'annotationProcessorClassNames' of task ':OUIConversation:javaPreCompileDebug'
org.gradle.api.internal.provider.AbstractProperty$PropertyQueryException: Failed to calculate the value of task ':OUIConversation:javaPreCompileDebug' property 'annotationProcessorClassNames'.
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':OUIConversation:debugRuntimeClasspath'.
org.gradle.api.internal.artifacts.transform.TransformException: Failed to transform android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.status=release}.
org.gradle.internal.resolve.ArtifactResolveException: Could not download android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/android-sdk/3.5.1/android-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 111,093; received: 32,277)
org.gradle.api.internal.tasks.properties.PropertyEvaluationException: Error while evaluating property 'annotationProcessorClassNames' of task ':OUIGroup:javaPreCompileDebug'
org.gradle.api.internal.provider.AbstractProperty$PropertyQueryException: Failed to calculate the value of task ':OUIGroup:javaPreCompileDebug' property 'annotationProcessorClassNames'.
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':OUIGroup:debugRuntimeClasspath'.
org.gradle.api.internal.artifacts.transform.TransformException: Failed to transform android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.status=release}.
org.gradle.internal.resolve.ArtifactResolveException: Could not download android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/android-sdk/3.5.1/android-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 111,093; received: 32,277)
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
org.gradle.internal.resolve.ArtifactResolveException: Could not download android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/android-sdk/3.5.1/android-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 111,093; received: 32,277)
org.gradle.internal.resolve.ArtifactResolveException: Could not download core-sdk-3.5.1.aar (io.openim:core-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/core-sdk/3.5.1/core-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 27,488,871; received: 32,275)
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
org.gradle.internal.resolve.ArtifactResolveException: Could not download android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/android-sdk/3.5.1/android-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 111,093; received: 32,277)
org.gradle.internal.resolve.ArtifactResolveException: Could not download core-sdk-3.5.1.aar (io.openim:core-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/core-sdk/3.5.1/core-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 27,488,871; received: 32,275)
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
org.gradle.internal.resolve.ArtifactResolveException: Could not download android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/android-sdk/3.5.1/android-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 111,093; received: 32,277)
org.gradle.internal.resolve.ArtifactResolveException: Could not download core-sdk-3.5.1.aar (io.openim:core-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/core-sdk/3.5.1/core-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 27,488,871; received: 32,275)
org.gradle.api.internal.tasks.properties.PropertyEvaluationException: Error while evaluating property 'annotationProcessorClassNames' of task ':app:javaPreCompileDebug'
org.gradle.api.internal.provider.AbstractProperty$PropertyQueryException: Failed to calculate the value of task ':app:javaPreCompileDebug' property 'annotationProcessorClassNames'.
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
org.gradle.api.internal.artifacts.transform.TransformException: Failed to transform android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1) to match attributes {artifactType=android-symbol-with-package-name, org.gradle.status=release}.
org.gradle.internal.resolve.ArtifactResolveException: Could not download android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/android-sdk/3.5.1/android-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 111,093; received: 32,277)
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
org.gradle.internal.resolve.ArtifactResolveException: Could not download android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/android-sdk/3.5.1/android-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 111,093; received: 32,277)
org.gradle.internal.resolve.ArtifactResolveException: Could not download core-sdk-3.5.1.aar (io.openim:core-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/core-sdk/3.5.1/core-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 27,488,871; received: 32,275)
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
org.gradle.internal.resolve.ArtifactResolveException: Could not download android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/android-sdk/3.5.1/android-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 111,093; received: 32,277)
org.gradle.internal.resolve.ArtifactResolveException: Could not download core-sdk-3.5.1.aar (io.openim:core-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/core-sdk/3.5.1/core-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 27,488,871; received: 32,275)
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
org.gradle.internal.resolve.ArtifactResolveException: Could not download android-sdk-3.5.1.aar (io.openim:android-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/android-sdk/3.5.1/android-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 111,093; received: 32,277)
org.gradle.internal.resolve.ArtifactResolveException: Could not download core-sdk-3.5.1.aar (io.openim:core-sdk:3.5.1)
org.gradle.api.resources.ResourceException: Could not get resource 'https://open-im-online.rentsoft.cn:51000/repository/maven2/io/openim/core-sdk/3.5.1/core-sdk-3.5.1.aar'.
org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 27,488,871; received: 32,275)

What did you expect to happen?

successful running

How can we reproduce it (as minimally and precisely as possible)?

clone it and running again

Anything else we need to know?

可以用中文

version

```console $ {name} version # paste output here ```

Cloud provider

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

@MyWealLee
Copy link

I have the same error

@OCTestX
Copy link

OCTestX commented Aug 4, 2024

我不知道你们是怎样的,我打开项目无法识别gradle,直到我打开项目文件夹的Demo文件夹,一切正常运行

@OCTestX
Copy link

OCTestX commented Aug 4, 2024

Screenshot_20240804_153322

@OCTestX
Copy link

OCTestX commented Aug 4, 2024

也许你应该尝试使用代理

@chenyu1990
Copy link

这个open-im的文档是真的烂
flutter
react-native
还有这个,全试了,没一个可以跑起来的!无语死了

@JauneQ
Copy link
Collaborator

JauneQ commented Nov 1, 2024

Try to clean your gradle's cache folder, and rebuild it.

@buiphukhuyen
Copy link

Same error

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

6 participants