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

Android - Could not find method compile() for arguments [project ':react-native-view-pdf'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. #240

Open
MacDinhThanh opened this issue Nov 21, 2022 · 7 comments
Labels
wontfix This will not be worked on

Comments

@MacDinhThanh
Copy link

add Could not find method compile() for arguments [project ':react-native-view-pdf'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
into dependencies of build.gradle when start ./gradlew clean error

@jersrej
Copy link

jersrej commented Nov 25, 2022

Im getting the same issue

@rumax
Copy link
Owner

rumax commented Nov 25, 2022

react-native-view-pdf does not use compile but implementation, so you need to check your project if you still uses compile or implementation if you migrated to gradle7

@jersrej
Copy link

jersrej commented Nov 25, 2022

I actually used implementation instead of compile but still got an error

I tried this

implementation project(':react-native-view-pdf')

and this

implementation (':react-native-view-pdf')

@rumax
Copy link
Owner

rumax commented Nov 30, 2022

@jersrej unfortunately cannot help with it without some reference project where it can be reproduced.

@paulopgss
Copy link

There is no need to add compile project(':react-native-view-pdf') or implementation (':react-native-view-pdf'), if you look in the demo folder it doesn't add it, I didn't and it worked

@denialfarizi1
Copy link

I added this to my build.gradle, hope it helps

buildscript {
    ext {
        ...
        pdfViewerVersion = "3.2.0-beta.1"
        pdfViewerRepo = "com.github.mhiew"
    }
}

@stale
Copy link

stale bot commented May 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants