mapbox-android-demo icon indicating copy to clipboard operation
mapbox-android-demo copied to clipboard

Getting this error while building the MapboxAndroidDemo

Open PriyankaWSA opened this issue 5 years ago • 3 comments

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.

PriyankaWSA avatar Feb 10 '21 10:02 PriyankaWSA

@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 !

PriyankaWSA avatar Feb 11 '21 01:02 PriyankaWSA

@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?

tsuz avatar Feb 18 '21 01:02 tsuz

@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

skjaiswal20 avatar Nov 07 '21 12:11 skjaiswal20