Reputation: 5541
Failed to build the app: No package name found.
/Users/runner/work/1/s/node_modules/react-native-image-picker/android/src/main/AndroidManifest.xml
The package name is missing in AndroidManifest
file after npm/pod install
to solve this issue, I have manually added the package name locally but the build gets failed in the pipeline.
Steps to reproduce
Configuration
"react-native": "0.70.5",
"react-native-image-picker": "^5.6.0",
Please help me to solve this issue, let me know if any additional info is required.
FYI
[!] Invalid `Podfile` file: 809: unexpected token at 'info Run CLI with --verbose flag for more details.
from /Users/runner/work/1/s/ios/Podfile:20
target 'Proxus' do
config = use_native_modules!
The process '/usr/local/lib/ruby/gems/3.0.0/bin/pod' failed with exit code 1
The 'pod' command failed with error: The process '/usr/local/lib/ruby/gems/3.0.0/bin/pod' failed with exit code 1
Upvotes: 0
Views: 1303
Reputation: 5541
The answer to the question above is the downgrading the version of image picker.
Downgrading the version to 5.4.0
worked for me .
I have posted an question here and have some suggestions to resolve the issue.
Extended solution is
As per the android documentation package
attribute in the manifest
is no more supported
In the Gradle-based build system, starting with AGP 7.3,
don't set the package
value in the source manifest
file directly. It can now be found in the gradle file.
My suggestion is to try updating the android
in your react native
project to latest
and use the latest version of the react-native-image-picker
this might resolve the issue.
Upvotes: 0