Cannot setup SDK on Android: getting error "Failed to resolve: 'com.mbientlab:metawear:3.7.0'"

Help, I cannot set up the Metawear SDK with my Android app and I need to get this working on a tight project timeline. I consistently get this error when syncing: **ERROR: Failed to resolve: com.mbientlab:metawearr:3.7.0
**

Why can't my app find the SDK? I am following this project guide: https://mbientlab.com/androiddocs/latest/project_setup.html

Here are the excerpts from my build.gradle:

    buildscript {
        repositories {
            jcenter()

            ivy {
                url "https://mbientlab.com/releases/ivyrep"
                layout "gradle"
            }
        }
    }

    dependencies {
    ...
    implementation 'com.mbientlab:metawear:3.7.0'
    }

Comments

  • I solved my issue. Moved the line "ivy..." into allprojects instead of buildscript:

            allprojects {
                repositories {
                    ivy {
                        url "https://mbientlab.com/releases/ivyrep"
                        layout "gradle"
                    }
            ...
            }
    
  • @rascarandang, thanks for the update! Glad its working!

Sign In or Register to comment.