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

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

Open
dhatriparakal opened this issue Feb 20, 2023 · 0 comments
Open

Comments

@dhatriparakal
Copy link

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'

}

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

1 participant