Closed faisalrugrugt closed 6 years ago
What's your question?
when I run the app, its works on android 4.4 or less I can't make it work for higher version
What error does it give? I've used it on higher APIs before.
Warning:The specified Android SDK Build Tools version (23.0.3) is ignored, as it is below the minimum supported version (26.0.2) for Android Gradle Plugin 3.0.1.
Android SDK Build Tools 26.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
here's my build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
applicationId "net.lesan_tech.myo23"
minSdkVersion 18
targetSdkVersion 23
versionCode 2
versionName "1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'eu.darken.myolib:myolib:0.0.2'
repositories {
maven {
url 'C:\\Users\\AL deqa\\Desktop\\myo-android-sdk-0.10.0\\myorepository'
}
}
compile 'com.thalmic:myosdk:0.10.+@aar'
}
The dependencies were outdated (gradle/buildtools) for the latest Android Studio version.
I've updated the library and published 0.0.5
give that a try.
I've tested the example app on a Pixel@8.1.0 build with Android Studio 3.0.1.
Also on newer versions you have to keep in mind that BLE needs location permission (but logcat should also show you a warning about that.
And your code snippet shows that you are using very old dependencies too in net.lesan_tech.myo23
, I would update that too.
Works like a charm ...thank you
I am using the library but it works on API 23 or less can you help me