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

[1.8.0] Android Build Failed - Could not find com.android.tools.build:gradle #131

Open
luizhfff opened this issue Dec 4, 2024 · 1 comment
Assignees
Labels
Platform: android Status: question Further information is requested Target: stario10 Issues related to the API and other StarIO10 library.

Comments

@luizhfff
Copy link

luizhfff commented Dec 4, 2024

Description

Hi everyone,

Has anyone had issues with building project for android after updating to 1.8.0 ?

I was looking at the build.gradle file on this project, shouldn't the version for build gradle tools be defined there?

https://github.com/star-micronics/react-native-star-io10/blob/master/android/build.gradle#L11-L12

Thanks in advance

Cheers

Your device where the bug occurs

Your development environment

ProductName: macOS
ProductVersion: 15.1.1
BuildVersion: 24B91

"react": "17.0.2",
"react-native": "0.68.6",
"react-native-star-io10": "^1.8.0",
dependencies {
 classpath('com.android.tools.build:gradle:4.1.0')      
}

Gradle version: 6.7.1

Additional context

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':react-native-star-io10'.
> Could not resolve all artifacts for configuration ':react-native-star-io10:classpath'.
   > Could not find com.android.tools.build:gradle:.
     Required by:
         project :react-native-star-io10
   > Could not find com.facebook.react:react-native-gradle-plugin:.
     Required by:
         project :react-native-star-io10
@can-miki
Copy link
Contributor

Thank you for getting in touch.
Could you please try these steps and see if it resolves the issue?
https://github.com/star-micronics/react-native-star-io10?tab=readme-ov-file#1-add-settings-for-library-dependencies

@can-miki can-miki self-assigned this Dec 10, 2024
@can-miki can-miki added Status: question Further information is requested Platform: android labels Dec 10, 2024
@can-miki can-miki added the Target: stario10 Issues related to the API and other StarIO10 library. label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: android Status: question Further information is requested Target: stario10 Issues related to the API and other StarIO10 library.
Projects
None yet
Development

No branches or pull requests

2 participants