Giter Site home page Giter Site logo

[android][expo-sqlite/next] android build error: Could not find method useDefaultAndroidSdkVersions() for arguments [] on project ':expo-sqlite' of type org.gradle.api.Project about expo HOT 18 CLOSED

gpurbia avatar gpurbia commented on June 1, 2024 3
[android][expo-sqlite/next] android build error: Could not find method useDefaultAndroidSdkVersions() for arguments [] on project ':expo-sqlite' of type org.gradle.api.Project

from expo.

Comments (18)

paulayo93 avatar paulayo93 commented on June 1, 2024 6

Please am having the same error in expo-blur

Could not find method useDefaultAndroidSdkVersions() for arguments [] on project ':expo-blur' of type org.gradle.api.Project.

Got it fixed running this command :

npx expo install --fix

https://docs.expo.dev/workflow/upgrading-expo-sdk-walkthrough/

from expo.

Shubh-Rajawat avatar Shubh-Rajawat commented on June 1, 2024 4

@gpurbia I am getting this same error but with expo-document-picker tried so many things but not getting any solution. Still Trying

from expo.

adamspotlite avatar adamspotlite commented on June 1, 2024 1

is this related to the release of Expo 51? we're on 50 but maybe something snuck into the build pipeline?

had this happen for the first time after really minimal code changes an hour ago.

from expo.

bigxalx avatar bigxalx commented on June 1, 2024 1

Have the same problem thrown by expo-constants.
npx expo install --fix did not fix it.

from expo.

gpurbia avatar gpurbia commented on June 1, 2024 1

@bigxalx it should work with expo 51, i upgraded with 51, and it start working.

from expo.

expo-bot avatar expo-bot commented on June 1, 2024

Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue.

The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue.

A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own.

Resources

Common concerns

"I've only been able to reproduce it in private, proprietary code"

You may not have spent enough time narrowing down the root cause of the issue. Try out the techniques discussed in this manual debugging guide to learn how to isolate the problem from the rest of your codebase.

"I didn't have time to create one"

That's understandable, it can take some time to prepare. We ask that you hold off on filing an issue until you are able to fully complete the required fields in the issue template.

"You can reproduce it by yourself by creating a project and following these steps"

This is useful knowledge, but it's still valuable to have the resulting project that is produced from running the steps, where you have verified you can reproduce the issue.

from expo.

Shubh-Rajawat avatar Shubh-Rajawat commented on June 1, 2024

@gpurbia Did you find the solution ???

from expo.

gpurbia avatar gpurbia commented on June 1, 2024

@Shubh-Rajawat not yet, i am going with expo-sqlite again for now, will check with expo 51 if its resolved or not.

from expo.

gpurbia avatar gpurbia commented on June 1, 2024

https://github.com/expo/expo/blob/sdk-51/packages/expo-document-picker/android/build.gradle

@Shubh-Rajawat yeah, because the same method is there also in gradle file, check above link. There may be something we are missing with dependencies here. Or you can try with expo 51 which was released today only.

from expo.

paulayo93 avatar paulayo93 commented on June 1, 2024

Please am having the same error in expo-blur

Could not find method useDefaultAndroidSdkVersions() for arguments [] on project ':expo-blur' of type org.gradle.api.Project.

from expo.

Shubh-Rajawat avatar Shubh-Rajawat commented on June 1, 2024

npx expo install --fix it worked.. Thanks to both of you @paulayo93 and @gpurbia . This was my first React native project, Now I have downloaded the file from expo.dev and the extension is .aab I don't know how to use it as apk in mobile. I am still figuiring this out.

from expo.

Shubh-Rajawat avatar Shubh-Rajawat commented on June 1, 2024

npx expo install --fix it worked.. Thanks to both of you @paulayo93 and @gpurbia . This was my first React native project, Now I have downloaded the file from expo.dev and the extension is .aab I don't know how to use it as apk in mobile. I am still figuiring this out.

Found this too .-- https://docs.expo.dev/build-reference/apk/

from expo.

bigxalx avatar bigxalx commented on June 1, 2024

@bigxalx it should work with expo 51, i upgraded with 51, and it start working.

That worked, thanks!

This might be useful to anyone who updated to expo 51 on day one: I got some errors, so reverted back to 50. If you experienced the same, try upgrading to 51 again as 51.0.2 seemed to fix the bugs I got.

from expo.

rumrum28 avatar rumrum28 commented on June 1, 2024

FAILURE: Build failed with an exception. * Where: Build file 'C:\Code\React Native\projectFolder\node_modules\expo\android\build.gradle' line: 9 * What went wrong: A problem occurred evaluating project ':expo'. > Could not find method useDefaultAndroidSdkVersions() for arguments [] on project ':expo' of type org.gradle.api.Project.

help still not fix* with npx expo install --fix

from expo.

Mitrandir-main avatar Mitrandir-main commented on June 1, 2024

FAILURE: Build failed with an exception. * Where: Build file 'C:\Code\React Native\projectFolder\node_modules\expo\android\build.gradle' line: 9 * What went wrong: A problem occurred evaluating project ':expo'. > Could not find method useDefaultAndroidSdkVersions() for arguments [] on project ':expo' of type org.gradle.api.Project.

help still not fix* with npx expo install --fix

Not working for me as well for :expo-blur

from expo.

rumrum28 avatar rumrum28 commented on June 1, 2024

FAILURE: Build failed with an exception. * Where: Build file 'C:\Code\React Native\projectFolder\node_modules\expo\android\build.gradle' line: 9 * What went wrong: A problem occurred evaluating project ':expo'. > Could not find method useDefaultAndroidSdkVersions() for arguments [] on project ':expo' of type org.gradle.api.Project.

help still not fix* with npx expo install --fix

for some reason i fix it by just removing this "react-native-swiper-flatlist"

from expo.

costaDZ avatar costaDZ commented on June 1, 2024

having the same issue with expo 50 , Could not find method useDefaultAndroidSdkVersions() for arguments [] on project ':expo-system-ui' .

I didn't want to upgrade to expo 51 because it doesn't support some modules i uses in my project , like expo-background-fetch

from expo.

ldallalio avatar ldallalio commented on June 1, 2024

I was on Expo 50 and tried npx expo install --fix with no luck then upgraded to expo@51 and then ran npx expo install --fix with success, I was having a problem with expo-crypto.

from expo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.