package name missing from androidManifest causes pod install error
nikoloz110 opened this issue · comments
What react-native
version are you using?
0.69.5
What react-native-pdf
version are you using?
6.7.1
What platform does your issue occur on? (android/ios/both)
ios
Describe your issue as precisely as possible :
- pod install fails because androidmanifest.xml missing package name. added package name from old versions package="org.wonday.pdf" and it worked again
![image](https://private-user-images.githubusercontent.com/17814568/284269126-1d0e9299-2412-453a-a1b8-0d7f88f19cfd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5OTMyMDYsIm5iZiI6MTcxODk5MjkwNiwicGF0aCI6Ii8xNzgxNDU2OC8yODQyNjkxMjYtMWQwZTkyOTktMjQxMi00NTNhLWExYjgtMGQ3Zjg4ZjE5Y2ZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIxVDE4MDE0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkzYzI1NjQxM2QxMmIxODExMTJmZTk1ZGMxZTA2ZTk2NTE2NTI1ZjIyZmJkYmFjZGMwYmVlYzA5NGJlMjI4MGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.CMhNfJUy0WTxJ0WW9FiejoUFM6afPgPgeM4hzMfTdiM)
+1
I have the same problem:
React Native version: 0.70.5
"react-native-pdf": "^6.7.1"
Same issue. The library cannot be installed at the moment.
react-native version: 0.70.1
react-native-pdf version: 6.7.3"
platform: iOS
As a workaround, I added the following to the opening manifest tag in node_modules/react-native-pdf/android/src/main/AndroidManifest.xml.
package="org.wonday.pdf"
So the final file currently looks like:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.wonday.pdf">
</manifest>
Same issue. The library cannot be installed at the moment.
react-native version: 0.70.1 react-native-pdf version: 6.7.3" platform: iOS
As a workaround, I added the following to the opening manifest tag in node_modules/react-native-pdf/android/src/main/AndroidManifest.xml.
package="org.wonday.pdf"
So the final file currently looks like:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.wonday.pdf"> </manifest>
I tried this for android but I get a java compile error:
import org.wonday.pdf.RCTPdfView;
^
symbol: class RCTPdfView
location: package org.wonday.pdf
Were there any other steps required?