react-native-pdf
react-native-pdf copied to clipboard
Could not find method content() for arguments [build_btgng5mrun7sb0lwx0zgf8irw$_run_closure1$_closure4$_closure5@513807a2] on object of type org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.
"react-native": "0.62.2", "react-native-pdf": "^6.2.2", platform : "android"
Describe your issue as precisely as possible : 运行命令 'react-native run-andrid' 时,项目编译报错,报错如下: Could not find method content() for arguments [build_btgng5mrun7sb0lwx0zgf8irw$_run_closure1$_closure4$_closure5@513807a2] on object of type org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.

Hello, what's the fix for this?
Hello, what's the fix for this?
去掉 includeGroup "com.github.TalbotGooday" 就可以了
I also has the same issue, does commenting out includeGroup "com.github.TalbotGooday" will revert AndroidPdfViewer back to https://github.com/barteksc/AndroidPdfViewer?
The issue is that, the version of gradle I am using is 3.2, which doesn't have content method, the solution is to upgrade gradle to 5.1 or greater.