Comments (12)
same issue after upgrading to expo 51
from expo.
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.
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.
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.
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.
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.
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.
anyone solved this? currently experiencing this too.
from expo.
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.
Same here, getting compileSdkVersion is not specified
on version 51 in bare project
from expo.
Same for me
from expo.
Opened a new issue with reproducible example here
from expo.
Related Issues (20)
- Unable to resolve import of file after upgrading from SDK 48 to 51 in monorepo
- [expo-av][iOS] Duck / unduck is not working properly on iOS HOT 2
- Expo 51: expo-sensors: DeviceMotion.addListener crashes on Android in eventsToMap (DeviceMotionModule.kt) HOT 1
- Expo 50 -> 51 Error: EMFILE: too many open files, watch HOT 5
- Expo Go app (Android) is stuck on Expo Logo on startapp. HOT 1
- [docs] expo-sqlite getAsync function reference
- [Task-manager][BackgroundFetch]PluginError: Plugin is an unexpected type: object HOT 1
- Error Cannot find native module ExpoFontLoader HOT 2
- Send parameters to nested navigators
- @expo/fingerprint return error - Cannot get Expo config from an Expo project HOT 1
- Background Fetch not work in Background
- expo start --dev-client binds to ipv6 while internal distribution with dev-client connects only via ipv4
- [camera] torch not working
- Watchman install not recommended for iOS development [docs]
- [expo-video] I can't use youtube urls to show videos in my app HOT 1
- expo-av audo playback works on web but not on iOS HOT 1
- "✅ AppContext was initialized" is running Twice HOT 3
- Can't build with private npm packages in the dependencies
- Drawer Navigation on right renders in center when navigating
- Download Profile Button Not Activating on iPhone 11 During Internal Distribution Setup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expo.