Giter Club home page Giter Club logo

Comments (12)

pablobarreraf avatar pablobarreraf commented on May 26, 2024 11

same issue after upgrading to expo 51

from expo.

pablobarreraf avatar pablobarreraf commented on May 26, 2024 6

Guys I solved it, I did not check the documentation completely on the new android sdk, update the compile sdk version in the app.json and hopefully the dev build should work again

[
        "expo-build-properties",
        {
          "android": {
            "compileSdkVersion": 34,
            "targetSdkVersion": 34,
            "buildToolsVersion": "34.0.0"
          },
          "ios": {
            "deploymentTarget": "14.0"
          }
        }
      ],

from expo.

lscborges1 avatar lscborges1 commented on May 26, 2024 4

@melvinDebot

It looks like your googleServicesFile is inside the adaptiveIcon configuration. This is causing the expo-doctor script to log the following error:

[RUN_EXPO_DOCTOR] • Field: android/adaptiveIcon - should NOT have additional property 'googleServicesFile'.

Try moving googleServicesFile outside of the adaptiveIcon object.

I also encountered an issue that resulted in the error compileSdkVersion is not specified. In my case, it was due to a typo in a property name.

For anyone facing similar issues, I recommend running npx expo-doctor@latest to identify potential problems and double-check the app.json file.

from expo.

rumrum28 avatar rumrum28 commented on May 26, 2024 2

same issue please help

FAILURE: Build failed with an exception.

  • Where: Build file 'C:\Code\React Native\prycegas\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.

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

from expo.

Ronald3217 avatar Ronald3217 commented on May 26, 2024 1

Guys I solved it, I did not check the documentation completely on the new android sdk, update the compile sdk version in the app.json and hopefully the dev build should work again

[
        "expo-build-properties",
        {
          "android": {
            "compileSdkVersion": 34,
            "targetSdkVersion": 34,
            "buildToolsVersion": "34.0.0"
          },
          "ios": {
            "deploymentTarget": "14.0"
          }
        }
      ],

Thank you very much, this worked for me.

from expo.

expo-bot avatar expo-bot commented on May 26, 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.

rumrum28 avatar rumrum28 commented on May 26, 2024

same issue please help

FAILURE: Build failed with an exception.

  • Where: Build file 'C:\Code\React Native\prycegas\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.

from expo.

redclouddrailan avatar redclouddrailan commented on May 26, 2024

anyone solved this? currently experiencing this too.

from expo.

CCB-cerivera avatar CCB-cerivera commented on May 26, 2024

Someone having this error on SDK 50 with RN 73.8 was working fine and overnight it stopped working.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Script 'C:\Users\cer\Documents\hh\mob\ccc\node_modules\expo-modules-autolinking\scripts\android\autolinking_implementation.gradle' line: 377

* What went wrong:
A problem occurred evaluating project ':expo'.
> A problem occurred configuring project ':expo-application'.
   > Failed to notify project evaluation listener.
      > com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradl
      > Could not get unknown property 'release' for SoftwareComponent container of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':expo'.
> Failed to notify project evaluation listener.
   > com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle
   > Could not get unknown property 'release' for SoftwareComponent container of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

BUILD FAILED in 2m 6s
10 actionable tasks: 10 executed

from expo.

ampopdev avatar ampopdev commented on May 26, 2024

Same here, getting compileSdkVersion is not specified on version 51 in bare project

from expo.

metadan avatar metadan commented on May 26, 2024

Same for me

from expo.

ampopdev avatar ampopdev commented on May 26, 2024

Opened a new issue with reproducible example here

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.