Repository navigation
Getting this error while building the MapboxAndroidDemo #1398
Description
Could not determine the dependencies of task ':MapboxAndroidDemo:preGlobalDebugBuild'.
Could not resolve all task dependencies for configuration ':MapboxAndroidDemo:globalDebugRuntimeClasspath'.
Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1.
Required by:
project :MapboxAndroidDemo
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
Could not resolve project :MapboxAndroidWearDemo.
Required by:
project :MapboxAndroidDemo
> Unable to find a matching variant of project :MapboxAndroidWearDemo:
- Variant 'debugApiElements':
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found incompatible value 'Apk'.
- Required default 'global' but no value provided.
- Required org.gradle.usage 'java-runtime' and found incompatible value 'java-api'.
- Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided.
- Variant 'debugBundleElements':
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' but no value provided.
- Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but no value provided.
- Required default 'global' but no value provided.
- Required org.gradle.usage 'java-runtime' and found incompatible value 'android-bundle'.
- Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided.
- Variant 'debugMetadataElements':
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found incompatible value 'Metadata'.
- Required default 'global' but no value provided.
- Required org.gradle.usage 'java-runtime' but no value provided.
- Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided.
- Variant 'debugRuntimeElements':
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found incompatible value 'Apk'.
- Required default 'global' but no value provided.
- Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.
- Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided.
- Variant 'releaseApiElements':
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found incompatible value 'release'.
- Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found incompatible value 'Apk'.
- Required default 'global' but no value provided.
- Required org.gradle.usage 'java-runtime' and found incompatible value 'java-api'.
- Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided.
- Variant 'releaseBundleElements':
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' but no value provided.
- Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but no value provided.
- Required default 'global' but no value provided.
- Required org.gradle.usage 'java-runtime' and found incompatible value 'android-bundle'.
- Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided.
- Variant 'releaseMetadataElements':
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found incompatible value 'release'.
- Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found incompatible value 'Metadata'.
- Required default 'global' but no value provided.
- Required org.gradle.usage 'java-runtime' but no value provided.
- Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided.
- Variant 'releaseRuntimeElements':
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found incompatible value 'release'.
- Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found incompatible value 'Apk'.
- Required default 'global' but no value provided.
- Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.
- Required org.jetbrains.kotlin.platform.type 'androidJvm' but no value provided.
Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1.
Required by:
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-building-v9:0.7.0
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-localization-v9:0.12.0
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-traffic-v9:0.10.0
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-markerview-v9:0.4.0
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-scalebar-v9:0.5.0
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1.
Required by:
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-places-v9:0.12.0
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
Could not resolve com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1.
Required by:
project :MapboxAndroidDemo > com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
> No cached version of com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.0-alpha.1 available for offline mode.
Please suggestion ans asap. In an urgent requirment.
Activity
PriyankaWSA commentedon Feb 11, 2021
@tsuz can you help with this issue !! trying to build the code, have take pull with github desktop and generated the token from mapbox site & finally studio version is 4.1 !
tsuz commentedon Feb 18, 2021
@PriyankaWSA
It seems like you don't have the right binary. Did you follow this guide? Also, can you make sure you set the dependency?
skjaiswal20 commentedon Nov 7, 2021
@tsuz and @ALL(who can help me )
as you mentioned in guide [in running locally portion of guide]
"''''''' _With the first Gradle invocation, Gradle will take the value of the MAPBOX_ACCESS_TOKEN environment variable and save it to SharedCode/src/main/res/values/developer-config.xml. If the environment variable wasn't set, you can create/edit the developer-config.xml file. Create an access_token String resource and paste your access token into it:
< string name="access_token">PASTE_YOUR_TOKEN_HERE< /string >_
''''''''''''''''''' "
i am not able to find all this folder as you mentioned. ( SharedCode/src/main/res/values/developer-config.xml) . and neither i am able to create devloper-config.xml file . { because i am not able to find res and values folder inside SharedCode}
plz help me to put my mapbox access token , and guide me in order to solve this issue . I am unable to process in above mentoned step .
thanking you in advance
regards
suryanshu