react-native-pdf-lib
react-native-pdf-lib copied to clipboard
Could not determine the dependencies of task ':react-native-pdf-lib:compileDebugAidl'.
After installing the library and adding
dexOptions {
jumboMode = true
}
In the app/build.gradle then cleaning gradle and building the app again gives me:
* What went wrong:
Could not determine the dependencies of task ':react-native-pdf-lib:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':react-native-pdf-lib:debugCompileClasspath'.
> Could not find com.tom_roush:pdfbox-android:1.8.9.1.
Required by:
project :react-native-pdf-lib
I have only tested this on Android and not on iOS.
same problem here
I also have the same problem which prohibits me from building and running the app..
+1
+1
Hi @Hopding , please tell the solution for this problem.
i have also the same problem
i have also the same problem
@Hopding can you please look out for the issue.
Hi guys, i also have the same issue.
Hey, the error you mentioned regarding the PDF library dependency can be resolved with a few adjustments. I've successfully resolved a similar issue, and here's a step-by-step guide to help you out:
- Open the android/app/build.gradle file and add the following line within the dependencies block:
implementation 'com.tom-roush:pdfbox-android:1.8.10.3'
OBS: Make sure to replace the version with one available in the Maven repository. You can check the available versions here
-
Navigate to node_modules/react-native-pdf-lib/android/build.gradle and repeat the same modification in dependencies block.
-
In the file node_modules/react-native-pdf-lib/android/src/main/java/com/hopding/pdflib/PDFLibModule.java, locate the line:
import android.support.v4.content.FileProvider;
Replace it with:
import androidx.core.content.FileProvider;
After making these changes, clean and rebuild your project. This should resolve the issue you encountered. I've tested these adjustments on Android, but I recommend verifying the iOS side as well.
Let me know if you face any further issues 😁
@vinikrummenauer i have tried but it does'nt work for me
nothing working same problem.
I'm still having the same issue, any another fix @vinikrummenauer