when I run react-native run-android on my windows10 these errors appear. I was able to run this app before and it used to work just fine. I've been digging the internet for a solution for a few days now but I wasn't able to fix it. can anyone help me please? I would be really appreciated.
my system specifications:
windows 10
react-native-cli: 2.0.1
react-native: 0.57.1 (I also tested 0.57.2 & 0.55.4)
babel: 4.6.1
gradle: 4.9
...............................error:
FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not resolve project :react-native-bluetooth-serial.
Required by:
project :app
Unable to find a matching configuration of project :react-native-bluetooth-serial: None of the consumable configurations have attributes.
Could not resolve project :react-native-ble-plx.
Required by:
project :app
Unable to find a matching configuration of project :react-native-ble-plx: None of the consumable configurations have attributes.
Related
I am trying to build sample app (apk) for alexa-auto-sdk. I am facing issues when building. the error i'm getting is.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':alexa-auto-app:dataBindingMergeDependencyArtifactsLocalRelease'.
> Could not resolve all task dependencies for configuration ':alexa-auto-app:localReleaseRuntimeClasspath'.
> Could not find :autovoicechrome:.
Searched in the following locations:
- file:/home/chetan/Projects/Amazon_Alexa/alexa-auto-sdk/aacs/android/sample-app/alexa-auto-app/libs/autovoicechrome.aar
- file:/home/chetan/Projects/Amazon_Alexa/alexa-auto-sdk/aacs/android/app-components/alexa-auto-voice-ui/libs/autovoicechrome.aar
- file:/home/chetan/Projects/Amazon_Alexa/alexa-auto-sdk/aacs/android/app-components/alexa-auto-voice-interaction/libs/autovoicechrome.aar
Required by:
project :alexa-auto-app > project :alexa-auto-voice-ui
I cloned in version 4.0 as I was facing issues when building with 4.1.
This is the README.md for sample app
https://github.com/alexa/alexa-auto-sdk/blob/4.0/aacs/android/sample-app/README.md
Please help with any information that you might have related to this.
You should request this aar from Amazone support.
I updated the Gradle from android studio. and when I try to run the project in vs code (Yes I already changed inside the build Gradle file too) showing this error.
What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find com.android.tools.build:gradle:7.4.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.4.1/gradle-7.4.1.pom
- https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/7.4.1/gradle-7.4.1.pom
Required by:
project :
how can I fix this?
The gradle plugin has different versions in project level build.grade and gradle-wrapper.properties Here is the official documentation about this
I followed every single step in the react native documentation to set up a project with create-react-native.
react-native init MobileProject
cd MobileProject && react-native run-android
However, it seems like the build won't fetch resources online. I tried to change proxy, swapped repositories in build.gradle but nothing seems to work. Any help would be greatly appreciated!
What went wrong:
A problem occurred configuring root project 'MobileProject'.
Could not resolve all artifacts for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:3.4.2.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.4.2.
Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.4.2/gradle-3.4.2.pom'.
Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.4.2/gradle-3.4.2.pom'.
jcenter.bintray.com:443 failed to respond
Could not resolve com.android.tools.build:gradle:3.4.2.
Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.4.2/gradle-3.4.2.pom'.
Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.4.2/gradle-3.4.2.pom'.
dl.google.com:443 failed to respond
I'm trying to create project to .apk file but got this error when I type - ./gradlew bundleRelease:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:preReleaseBuild'.
> Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
> Could not resolve project :react-native-gesture-handler.
Required by:
project :app
> Unable to find a matching configuration of project :react-native-gesture-handler: None of the consumable configurations have attributes.
I know there are some questions like mine but none is exact the same. I'm sorry if there is already existing solution, but I didn't found.
You may not link the library react-native-gesture-handler
I'm hitting a build issue with a fresh react-native init project (RN 0.57.2) when starting up with react-native run-android:
FAILURE: Build failed with an exception.
What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
Could not find support-annotations.jar (com.android.support:support-annotations:27.1.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-annotations/27.1.1/support-annotations-27.1.1.jar
What could possibly be wrong here? Is my Android Support Library version installed by Android Studio wrong?
I'm running Android Studio 3.1.0.0 on WIN10, yarn version 1.10.1.