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.
Related
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'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
After I updated my Android Studio to v2.3.3 and with it updated the required build tools and sdk version, have been getting the following error when I run ./gradlew assemble --stacktrace:
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':OpenEdXMobile'.
Could not resolve all dependencies for configuration ':OpenEdXMobile:_prodDebugApkCopy'.
Could not find com.android.databinding:baseLibrary:2.3.3.
Searched in the following locations:
file:/usr/local/android-sdk/extras/android/m2repository/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.pom
file:/usr/local/android-sdk/extras/android/m2repository/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.jar
file:/home/travis/build/edx/edx-app-android/sdk-manager/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.jar
Required by:
project :OpenEdXMobile
Could not find com.android.databinding:baseLibrary:2.3.3.
Searched in the following locations:
file:/usr/local/android-sdk/extras/android/m2repository/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.pom
file:/usr/local/android-sdk/extras/android/m2repository/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.jar
file:/home/travis/build/edx/edx-app-android/sdk-manager/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.jar
Required by:
project :OpenEdXMobile > com.android.databinding:library:1.3.1
project :OpenEdXMobile > com.android.databinding:adapters:1.3.1
Full report from Travis-CI can be found here.
Here are some relevant details:
The gradle's distribution url: distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip
Gradle version in my module's build.gradle is v2.3.3.
My full build.gradle is kinda big so here's the link to it.
https://github.com/edx/edx-app-android/blob/f899aeca945dea9a010af727e2b3ff1176e86f4e/build.gradle
Do mention if I have missed any details :)
Sadly I wasn't able to find a solution that worked with the settings and versions mentioned in the question.
Quick Fix:
I just had to downgrade my gradle version to v2.3.0 and everything worked just fine.
Future plan:
Will update this answer once I find a solution, for now I've mentioned the quick fix, so that the community can benefit.
I'm trying to build my app in Cordova 5.4 using cordova run android. I'm getting this:
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find any version that matches com.android.support:support-v4:+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v4/
Required by:
:android:unspecified
I can't seem to track this one down. Look familiar?
Sorry, if this should be a comment but I don't have enough points yet to do so.
Please try to install Android Support Repository in the Android SDK Manager.
Then check whether this works
cordova build android --verbose
If it's successful,
cordova run android --verbose
Source:
https://github.com/AzureAD/azure-activedirectory-library-for-cordova/issues/6
Check for android-support-v4.jar in your project build path.
I have the build script from this project here:
https://github.com/melix/gr8confagenda/blob/master/gr8confagenda/build.gradle
But when I try to run the project, I get this error:
* What went wrong:
A problem occurred configuring project ':gr8confagenda'.
> Could not resolve all dependencies for configuration ':gr8confagenda:_debugCompile'.
> Could not find com.android.support:support-v4:19.1.0.
Required by:
gr8confagenda:gr8confagenda:unspecified
Where I'm making the mistake?