expo: Expo SDK 48 build failed
Summary
Build crashes on gradlew stage
[stderr]
FAILURE: Build completed with 2 failures.
[stderr]
1: Task failed with an exception.
[stderr]
-----------
[stderr]
* Where:
[stderr]
Build file '/home/expo/workingdir/build/node_modules/expo-dev-launcher/android/build.gradle' line: 179
[stderr]
* What went wrong:
[stderr]
A problem occurred evaluating project ':expo-dev-launcher'.
[stderr]
> Cannot invoke method multiply() on null object
[stderr]
* Try:
[stderr]
> Run with --stacktrace option to get the stack trace.
[stderr]
> Run with --info or
[stderr]
--debug option to get more log output.
[stderr]
> Run with --scan to get full insights.
[stderr]
==============================================================================
[stderr]
2: Task failed with an exception.
[stderr]
-----------
[stderr]
* What went wrong:
[stderr]
A problem occurred configuring project ':expo'.
[stderr]
> compileSdkVersion is not specified. Please add it to build.gradle
[stderr]
* Try:
[stderr]
> Run with --stacktrace option to get the stack trace.
[stderr]
> Run with --info or --debug option to get more log output.
[stderr]
> Run with --scan to get full insights.
[stderr]
==============================================================================
[stderr]
* Get more help at https://help.gradle.org
[stderr]
BUILD FAILED in 1m 49s
What platform(s) does this occur on?
Android
SDK Version
48
Environment
expo-env-info 1.0.5 environment info: System: OS: Windows 10 10.0.19045 Binaries: Node: 16.13.1 - C:\Program Files\nodejs\node.EXE npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 2020.3.0.0 AI-203.7717.56.2031.7621141 npmPackages: react: 18.2.0 => 18.2.0 react-dom: 18.2.0 => 18.2.0 react-native: 0.71.4 => 0.71.4 Expo Workflow: managed
Minimal reproducible example
None
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 3
- Comments: 15 (1 by maintainers)
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.
i’m having all sorts of issues with SDK 48 too.
Still having this issue! =(
I had the same problem, but it was my mistake, in
package.json
I was setting the wrong file inmain
:In my case I was using
index.ts
, but renamed it tojs
and forgot to change the entry