weliem / blessed-android

BLESSED, a Bluetooth Low Energy (BLE) library for Android
MIT License
557 stars 119 forks source link

Library not loaded #154

Closed watemotion closed 2 years ago

watemotion commented 2 years ago

Android Studio is not able to recognize the BluetoothHandler class.

My settings are the following:

build.gradle project

buildscript { repositories { google() mavenCentral() }

dependencies {
    classpath "com.android.tools.build:gradle:7.0.4"

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

task clean(type: Delete) { delete rootProject.buildDir }

settings.gradle

dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() jcenter() // Warning: this repository is going to shut down soon maven { url 'https://jitpack.io' } } }

rootProject.name = "BlessedBLE" include ':app'

and I've added the following dependencies in my build.gradle app

dependencies {

implementation 'androidx.appcompat:appcompat:1.5.0'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'

implementation 'com.github.weliem:blessed-android:2.3.0'

}

Anyway when I use

BluetoothHandler.getInstance(getApplicationContext());

the BluetoothHandler is not recognized as part of the Blessed library.

watemotion commented 2 years ago

Oh I've found that the error has nothing to do with the library, you can discard my issue, thanks.

weliem commented 2 years ago

Ok, closing then...