Comments (9)
Error:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not resolve project :chat.
Required by:
project :app
> Unable to find a matching configuration of project :chat: None of the consumable configurations have attributes.
from android-nrf-toolbox.
Sorry, you have to check out this: https://github.com/NordicSemiconductor/Android-Ble-library project into the same error folder (i.e. AndroidstudioProjects). If you choose another folder name or destination, edit the settings.gradle file.
from android-nrf-toolbox.
@philips77 you could publish the library to Maven Central and add it as dependency... have seen a few issues because of not having checked out the other one repository, it seems to be the common pitfall. this would basically make it available in just any project, by adding a single line. so far seen no libraries on Maven with native assembly, the blescan.cpp
might need to be built for all available architectures. https://docs.gradle.org/current/userguide/publishing_maven.html
eg.
https://medium.com/@nmauti/sign-and-publish-on-maven-central-a-project-with-the-new-maven-publish-gradle-plugin-22a72a4bfd4b
https://gist.github.com/mautini/51e770a99f14dd13dfc7687217df20fc#file-buid-gradle
from android-nrf-toolbox.
Yes, we have done it with the dfu lib. BLE library in still under development, we will definitely publish it to jcenter/maven when done.
I'll on vacations now, I'll continue to work on it after Easter.
from android-nrf-toolbox.
use this first
yarn remove react-native-fetch-blob
Remove compile('react-native-fetch-blob') from build.gradle from android folder
from android-nrf-toolbox.
The BLE Library and BLE Common Library is now on jcenter and Maven Central.
from android-nrf-toolbox.
I am getting an error like this.
Please help.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
> Could not resolve com.google.android.gms:play-services-base:[15.0.1,16.0.0).
Required by:
project :app > com.google.android.gms:play-services-location:15.0.1
> Failed to list versions for com.google.android.gms:play-services-base.
> Unable to load Maven meta-data from https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-base/maven-metadata.xml.
> Could not HEAD 'https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-base/maven-metadata.xml'.
> Read timed out
> Could not resolve com.google.android.gms:play-services-basement:[15.0.1,16.0.0).
Required by:
project :app > com.google.android.gms:play-services-location:15.0.1
project :app > com.google.android.gms:play-services-places-placereport:15.0.1
> Skipped due to earlier error
> Skipped due to earlier error
> Skipped due to earlier error
> Skipped due to earlier error
> Skipped due to earlier error
> Skipped due to earlier error
> Could not resolve com.google.android.gms:play-services-tasks:[15.0.1,16.0.0).
Required by:
project :app > com.google.android.gms:play-services-location:15.0.1
> Skipped due to earlier error
> Skipped due to earlier error
> Skipped due to earlier error
> Skipped due to earlier error
> Skipped due to earlier error
> Skipped due to earlier error
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 50s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 51.4s
Gradle task assembleDebug failed with exit code 1
from android-nrf-toolbox.
Did you try this: https://stackoverflow.com/questions/50791632/could-not-find-any-version-that-matches-com-google-android-gmsplay-services-bas
from android-nrf-toolbox.
Could not determine the dependencies of task ':app:compileAssembleReleaseJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:assembleReleaseCompileClasspath'.
Could not resolve project :MyModelLibrary.
Required by:
project :app
> The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'assembleRelease', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm'. However we cannot choose between the following variants of project :MyModelLibrary:
- debugAndroidTestCompile
- debugAndroidTestRuntime
- debugRuntime
- debugUnitTestCompile
- debugUnitTestRuntime
- releaseRuntime
- releaseUnitTestCompile
- releaseUnitTestRuntime
All of them match the consumer attributes:
- Variant 'debugAndroidTestCompile' capability WelcomeT1Management:MyModelLibrary:unspecified declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'assembleRelease')
- Doesn't say anything about its usage (required an API)
- Provides attribute 'org.jetbrains.kotlin.localToProject' with value 'local to :MyModelLibrary' but the consumer didn't ask for it
- Variant 'debugAndroidTestRuntime' capability WelcomeT1Management:MyModelLibrary:unspecified declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'assembleRelease')
- Doesn't say anything about its usage (required an API)
- Provides attribute 'org.jetbrains.kotlin.localToProject' with value 'local to :MyModelLibrary' but the consumer didn't ask for it
- Variant 'debugRuntime' capability WelcomeT1Management:MyModelLibrary:unspecified declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'assembleRelease')
- Doesn't say anything about its usage (required an API)
- Provides attribute 'org.jetbrains.kotlin.localToProject' with value 'local to :MyModelLibrary' but the consumer didn't ask for it
- Variant 'debugUnitTestCompile' capability WelcomeT1Management:MyModelLibrary:unspecified declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'assembleRelease')
- Doesn't say anything about its usage (required an API)
- Provides attribute 'org.jetbrains.kotlin.localToProject' with value 'local to :MyModelLibrary' but the consumer didn't ask for it
- Variant 'debugUnitTestRuntime' capability WelcomeT1Management:MyModelLibrary:unspecified declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'assembleRelease')
- Doesn't say anything about its usage (required an API)
- Provides attribute 'org.jetbrains.kotlin.localToProject' with value 'local to :MyModelLibrary' but the consumer didn't ask for it
- Variant 'releaseRuntime' capability WelcomeT1Management:MyModelLibrary:unspecified declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'assembleRelease')
- Doesn't say anything about its usage (required an API)
- Provides attribute 'org.jetbrains.kotlin.localToProject' with value 'local to :MyModelLibrary' but the consumer didn't ask for it
- Variant 'releaseUnitTestCompile' capability WelcomeT1Management:MyModelLibrary:unspecified declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'assembleRelease')
- Doesn't say anything about its usage (required an API)
- Provides attribute 'org.jetbrains.kotlin.localToProject' with value 'local to :MyModelLibrary' but the consumer didn't ask for it
- Variant 'releaseUnitTestRuntime' capability WelcomeT1Management:MyModelLibrary:unspecified declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'assembleRelease')
- Doesn't say anything about its usage (required an API)
- Provides attribute 'org.jetbrains.kotlin.localToProject' with value 'local to :MyModelLibrary' but the consumer didn't ask for it
The following variants were also considered but didn't match the requested attributes:
- Variant 'debugApiElements' capability WelcomeT1Management:MyModelLibrary:unspecified declares an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'assembleRelease'
- Variant 'debugRuntimeElements' capability WelcomeT1Management:MyModelLibrary:unspecified declares a runtime of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'assembleRelease'
- Variant 'releaseApiElements' capability WelcomeT1Management:MyModelLibrary:unspecified declares an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'assembleRelease'
- Variant 'releaseRuntimeElements' capability WelcomeT1Management:MyModelLibrary:unspecified declares a runtime of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'assembleRelease'
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 2s
from android-nrf-toolbox.
Related Issues (20)
- Cycling Power Measurement HOT 1
- In Consistence BLE Connection time on different devices.
- Connection state change error: 133 newState: 0
- issue in implementing scanner
- DFU failing because of connection timeout, but works on iOS
- Bonding Fails and Device is not discoverable if Pairing dialog does not appear twice HOT 1
- build failed. Unresolved reference: theme HOT 2
- nRF Toolbox compatible with other devices HOT 1
- Danalock V3 Smart Lock nRF DFU firmware rewrite twice
- The project is using an incompatible version (AGP 7.4.0-alpha05) of the Android Gradle plugin. Latest supported version is AGP 7.2.0
- Log 2023-01-24 16_05_26.txt
- UART console log should automatically scroll
- Build.gradle.kts plugins can not be called
- Dependency Dashboard
- Nordic
- CONFIG_BRIDGE_BLE_ENABLE
- 5f4d1626be7e1307706f338c3a46903286eeb075
- Navigation issue
- cal. verif. number.
- API documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-nrf-toolbox.