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

error build android apk the catalog file 'libs.versions.toml' doesnt exist #27758

Closed
poedihippo opened this issue Mar 20, 2024 · 1 comment
Closed
Labels
incomplete issue: missing or invalid repro A minimal reproducible example is required for most issues

Comments

@poedihippo
Copy link

poedihippo commented Mar 20, 2024

Minimal reproducible example

eas build android

What platform(s) does this occur on?

No response

Did you reproduce this issue in a development build?

Yes

Summary

upgrading from sdk 46 to 49 and want to generate apk file and found this error
FAILURE:
Build failed with an exception.

  • What went wrong:
    org.gradle.api.InvalidUserDataException: Invalid catalog definition:
    • Problem: In version catalog reactAndroidLibs, import of external catalog file failed.

      Reason: File '/home/expo/workingdir/build/packages/melandas-app/node_modules/react-native/gradle/libs.versions.toml' doesn't exist.

      Possible solution: Make sure that the catalog file 'libs.versions.toml' exists before importing it.

      For more information, please refer to https://docs.gradle.org/8.3/userguide/version_catalog_problems.html#catalog_file_does_not_exist in the Gradle documentation.

Invalid catalog definition:
- Problem: In version catalog reactAndroidLibs, import of external catalog file failed.

  Reason: File '/home/expo/workingdir/build/packages/melandas-app/node_modules/react-native/gradle/libs.versions.toml' doesn't exist.

Possible solution: Make sure that the catalog file 'libs.versions.toml' exists before importing it.
For more information, please refer to https://docs.gradle.org/8.3/userguide/version_catalog_problems.html#catalog_file_does_not_exist in the Gradle documentation.

  • Try:

Environment

expo-env-info 1.2.0 environment info:
System:
OS: macOS 12.6.2
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 21.6.1 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.2.4 - /opt/homebrew/bin/npm
Watchman: 2024.01.22.00 - /opt/homebrew/bin/watchman
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK:
API Levels: 29, 30, 31, 33, 34
Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 33.0.0, 33.0.1, 34.0.0
System Images: android-28 | Google APIs ARM 64 v8a, android-33 | Google APIs ARM 64 v8a
IDEs:
Android Studio: 2023.1 AI-231.9392.1.2311.11330709
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
npmPackages:
@expo/metro-config: ~0.10.0 => 0.10.7
expo: ^49.0.0 => 49.0.23
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.72.10 => 0.72.10
react-native-web: ~0.19.6 => 0.19.10
npmGlobalPackages:
eas-cli: 5.9.1
expo-cli: 6.3.10
Expo Workflow: bare

Expo Doctor Diagnostics

Expected package @expo/config-plugins@~7.2.2
Found invalid:
@expo/config-plugins@5.0.4
(for more info, run: npm why @expo/config-plugins)
Expected package @expo/prebuild-config@~6.2.4
Found invalid:
@expo/prebuild-config@5.0.7
(for more info, run: npm why @expo/prebuild-config)
Advice: Upgrade dependencies that are using the invalid package versions0.

@poedihippo poedihippo added the needs validation Issue needs to be validated label Mar 20, 2024
@expo-bot expo-bot added incomplete issue: missing or invalid repro A minimal reproducible example is required for most issues and removed needs validation Issue needs to be validated labels Mar 20, 2024
@expo-bot
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incomplete issue: missing or invalid repro A minimal reproducible example is required for most issues
Projects
None yet
Development

No branches or pull requests

2 participants