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

SOLVED: Gradle Issue #80

Open
GoyalManas opened this issue Apr 11, 2024 · 1 comment
Open

SOLVED: Gradle Issue #80

GoyalManas opened this issue Apr 11, 2024 · 1 comment

Comments

@GoyalManas
Copy link

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

@Dessywayz
Copy link

just to add, check the java version you are currently using on android studio, gradle-7.6-all.zip is only compatible to java version 19. so check compatibility with https://docs.gradle.org/current/userguide/compatibility.html#java. and make sure you are changing the istributionUrl=https://services.gradle.org/distributions/gradle-7.6-all.zip to match the compatible java version to your computer,(google or youtube how to check android studio java version)

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

No branches or pull requests

2 participants