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

ReactNative 0.75版本中安卓编译提示file or directory 'node_modules/@sdcx/pull-to-refresh/android/libs' not found #44

Open
FantWings opened this issue Sep 14, 2024 · 3 comments

Comments

@FantWings
Copy link

FantWings commented Sep 14, 2024

使用的版本:
"@sdcx/nested-scroll": "^0.14.0",
"@sdcx/pull-to-refresh": "^0.23.0",

打包指令:
./gradlew build --warning-mode=all --info

输出如下:

file or directory '/Users/xxxxx/github/FurryCulture/furries-client-rn/node_modules/@sdcx/pull-to-refresh/android/libs', not found
Transforming core-for-system-modules.jar with JdkImageTransform
Transforming core-for-system-modules.jar with JdkImageTransform
Custom actions are attached to task ':sdcx_pull-to-refresh:compileDebugJavaWithJavac'.
Caching disabled for task ':sdcx_pull-to-refresh:compileDebugJavaWithJavac' because:
Build cache is disabled
Task ':sdcx_pull-to-refresh:compileDebugJavaWithJavac' is not up-to-date because:
Task has failed previously.
The input changes require a full rebuild for incremental task ':sdcx_pull-to-refresh:compileDebugJavaWithJavac'.
file or directory '/Users/xxxxx/github/FurryCulture/furries-client-rn/node_modules/@sdcx/pull-to-refresh/android/libs', not found
Transforming core-for-system-modules.jar with JdkImageTransform
Full recompilation is required because no incremental change information is available. This is usually caused by clean builds or changing compiler arguments.
Compiling with toolchain '/opt/homebrew/Cellar/openjdk@17/17.0.12/libexec/openjdk.jdk/Contents/Home'.
file or directory '/Users/xxxxx/github/FurryCulture/furries-client-rn/node_modules/@sdcx/pull-to-refresh/android/src/debug/java', not found
Compiling with JDK Java compiler API.
/Users/xxxxx/github/FurryCulture/furries-client-rn/node_modules/@sdcx/pull-to-refresh/android/src/main/java/com/reactnative/pulltorefresh/PullToRefresh.java:21: 错误: 无法访问NestedScrollingParent
public class PullToRefresh extends SmartRefreshLayout implements ReactOverflowView {
^
找不到android.support.v4.view.NestedScrollingParent的类文件
警告: 未知的枚举常量 Scope.LIBRARY
原因: 找不到android.support.annotation.RestrictTo$Scope的类文件
警告: 未知的枚举常量 Scope.LIBRARY_GROUP
警告: 未知的枚举常量 Scope.SUBCLASSES
警告: 未知的枚举常量 Scope.LIBRARY
警告: 未知的枚举常量 Scope.LIBRARY_GROUP
警告: 未知的枚举常量 Scope.SUBCLASSES
警告: 未知的枚举常量 Scope.LIBRARY
警告: 未知的枚举常量 Scope.LIBRARY_GROUP
警告: 未知的枚举常量 Scope.SUBCLASSES
警告: 未知的枚举常量 Scope.LIBRARY
警告: 未知的枚举常量 Scope.LIBRARY_GROUP
警告: 未知的枚举常量 Scope.SUBCLASSES
警告: 未知的枚举常量 Scope.LIBRARY
警告: 未知的枚举常量 Scope.LIBRARY_GROUP
警告: 未知的枚举常量 Scope.SUBCLASSES
警告: 未知的枚举常量 Scope.LIBRARY
警告: 未知的枚举常量 Scope.LIBRARY_GROUP
警告: 未知的枚举常量 Scope.SUBCLASSES
警告: 未知的枚举常量 Scope.LIBRARY
警告: 未知的枚举常量 Scope.LIBRARY_GROUP
警告: 未知的枚举常量 Scope.SUBCLASSES
警告: 未知的枚举常量 Scope.LIBRARY
警告: 未知的枚举常量 Scope.LIBRARY_GROUP
警告: 未知的枚举常量 Scope.SUBCLASSES
警告: 未知的枚举常量 Scope.LIBRARY
警告: 未知的枚举常量 Scope.LIBRARY_GROUP
警告: 未知的枚举常量 Scope.SUBCLASSES
1 个错误
27 个警告
Could not execute [report metric STATISTICS_COLLECT_METRICS_OVERHEAD]
Could not execute [report metric STATISTICS_COLLECT_METRICS_OVERHEAD]
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure
Variant Selection Exception: org.gradle.internal.component.resolution.failure.exception.ArtifactVariantSelectionException caused by Resolution Failure: org.gradle.internal.component.resolution.failure.type.AmbiguousResolutionFailure

FAILURE: Build failed with an exception.

@chj-damon
Copy link
Contributor

不支持新架构的

@arafat813
Copy link

我也遇到了同样的问题 ,有得到解决么

@FantWings
Copy link
Author

没有,目前是暂时回退到0.74了

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