Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Vision Manager not working and vision dependencies failed to resolve #230

@dhatriparakal

Description

@dhatriparakal

I am new to mapbox, and I followed the instructions on https://docs.mapbox.com/android/vision/guides/install/ but when I gradle sync, all 3 vision SDK dependencies fail to resolve, and when configuring SDK, the VisionManager.init line isn't working as VisionManager isn't recognized

This is my build.gradle file:

plugins {
id 'com.android.application'
}

android {
namespace 'com.example.adding_vision_test1'
compileSdk 32

defaultConfig {
    applicationId "com.example.adding_vision_test1"
    minSdkVersion 23
    targetSdk 32
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
    //debug {
    //    buildConfigField 'String', "MapboxAccessToken", MAPBOX_ACCESS_TOKEN
    // }
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    //    buildConfigField 'String', "MapboxAccessToken", MAPBOX_ACCESS_TOKEN
    }
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

}

dependencies {
implementation "com.mapbox.vision:mapbox-android-vision:0.13.0"
implementation "com.mapbox.vision:mapbox-android-vision-ar:0.13.0"
implementation "com.mapbox.vision:mapbox-android-vision-safety:0.13.0"
implementation "com.mapbox.mapboxsdk:mapbox-android-core:3.1.0"

implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.8.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions