Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle and Dart 3 dependency problems solved #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GoyalManas
Copy link

@GoyalManas GoyalManas commented Apr 11, 2024

Dart # dependency issue
in pubspec.yaml
change cupertino_icons to

cupertino_icons: ^1.0.6

and change sdk to

sdk: ">=2.12.0 <4.0.0"

make sure spacing is correct for each.

Gradle issue
Open android > gradle > gradle-wrapper.properties
change --> distributionUrl=https://services.gradle.org/distributions/gradle-7.0.2-all.zip
to --> distributionUrl=https://services.gradle.org/distributions/gradle-7.6-all.zip

Open android > app > build.gradle and then change both compileSdkVersion and targetSdkVersion to 31

Then open android > app > src > main > AndroidManifest.xml . Under the activity tag add android:exported="true" at the end.

Re-run you app and it should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant