petri-lipponen-movesense / mdsflutter

Flutter plugin for MDS(Movesense Device Service) to be used for communicating with Movesense sensors.
MIT License
6 stars 8 forks source link

Failed to build, anything I did wrong? #17

Closed Donzhu2020 closed 6 months ago

Donzhu2020 commented 7 months ago

I created libs folder under android and put mdslib-3.15.0-release.aar in it and followed the instructions but failed. So I move the libs folder to android/app, in app level build.gridle I added dependencies { implementation(name: 'mdslib-3.15.0-release', ext: 'aar') }

android { namespace "com.example.smart" compileSdk flutter.compileSdkVersion ndkVersion flutter.ndkVersion

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8

repositories {

    flatDir {
        dirs 'libs'
    }
}
}

In the project level build.gradle I followed the instruction allprojects { repositories { google() mavenCentral() flatDir{ dirs 'libs'

    }
}

} But still cannot build, FAILURE: Build failed with an exception.

BUILD FAILED in 16s Error: Gradle task assembleDebug failed with exit code 1

Need help