Estou tentando buildar um novo projeto React Native no linux e ao dar o npm run android ou yard android, aparece o seguinte erro:
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
AILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project 'testeReact'.
Could not determine the dependencies of task ':react-native-gradle-plugin:compileJava'. Could not resolve all dependencies for configuration ':react-native-gradle-plugin:compileClasspath'. Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven2(http://californio.keynet.com.br:5858/repository/maven-criar-libs/)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.3.3/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.
OBS: Uso o Linux mint 21. E estou fazendo no computador da empresa.