Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting this error while building the MapboxAndroidDemo #1398

Open
PriyankaWSA opened this issue Feb 10, 2021 · 3 comments
Open

Getting this error while building the MapboxAndroidDemo #1398

PriyankaWSA opened this issue Feb 10, 2021 · 3 comments

Comments

@PriyankaWSA
Copy link

PriyankaWSA commented Feb 10, 2021

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
Copy link
Author

@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
Copy link

tsuz commented 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
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants