xcarpentier / react-native-country-picker-modal

🇦🇶 Country picker provides a modal allowing a user to select a country from a list. It display a flag next to each country name.
https://reactnative.gallery/xcarpentier/country-picker
MIT License
1.07k stars 796 forks source link

App not building for android - error in constructor #443

Closed josecyc closed 2 years ago

josecyc commented 2 years ago

Issue Description

App builds and runs fine on iOS, however when I try to build for Android I get the following error:

Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 app/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:165: error: constructor CountryPickerPackage in class CountryPickerPackage cannot be applied to given types; new CountryPickerPackage(), ^ required: Activity found: no arguments reason: actual and formal argument lists differ in length Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error

Steps to Reproduce / Code Snippets

Build the app for android yarn android, npx react-native run-android, etc.

Expected Results

I was expecting the app to be built fine like in iOS

Additional Information

stale[bot] commented 2 years ago

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.