Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Outdated dependencies #8

Closed
faisalrugrugt opened this issue Mar 1, 2018 · 8 comments
Closed

Outdated dependencies #8

faisalrugrugt opened this issue Mar 1, 2018 · 8 comments
Labels

Comments

@faisalrugrugt
Copy link

I am using the library but it works on API 23 or less
can you help me

@d4rken d4rken added the question label Mar 2, 2018
@d4rken
Copy link
Owner

d4rken commented Mar 2, 2018

What's your question?

@faisalrugrugt
Copy link
Author

when I run the app, its works on android 4.4 or less
I can't make it work for higher version

@d4rken
Copy link
Owner

d4rken commented Mar 2, 2018 via email

@faisalrugrugt
Copy link
Author

faisalrugrugt commented Mar 4, 2018

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.

@faisalrugrugt
Copy link
Author

faisalrugrugt commented Mar 4, 2018

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'
}

@d4rken
Copy link
Owner

d4rken commented Mar 4, 2018

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.

@d4rken d4rken changed the title api problem Outdated dependencies Mar 4, 2018
@d4rken
Copy link
Owner

d4rken commented Mar 4, 2018

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.

@faisalrugrugt
Copy link
Author

faisalrugrugt commented Mar 5, 2018

Works like a charm ...thank you

@d4rken d4rken closed this as completed Mar 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants