emericg / WatchFlower

A plant monitoring application that reads and plots data from compatible Bluetooth sensors and thermometers like Xiaomi 'Flower Care' or Parrot 'Flower Power'
https://emeric.io/WatchFlower
GNU General Public License v3.0
192 stars 27 forks source link

Android BUILD: error: resource android:attr/lStar not found #56

Closed garudaonekh closed 2 years ago

garudaonekh commented 2 years ago

Hi, I got this error when I build on Android. error: resource android:attr/lStar not found

It looks like Android X issue. But can't find where to fix it.

Thanks;

emericg commented 2 years ago

Can you edit the assets/android/build.gradle file and try with this dependency section?

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
    implementation 'androidx.appcompat:appcompat:1.3.0'
    implementation 'androidx.core:core:1.3.0'
    implementation 'androidx.core:core-ktx:1.6.0'
}
garudaonekh commented 2 years ago

Thanks, That solved the above issue. However, I got another error with android:usesPermissionFlags. I use Android 12(31) however, still issue. So I remove this android:usesPermissionFlags from the manifest and it works.

emericg commented 2 years ago

Did you removed just the android:usesPermissionFlags="neverForLocation" or both the BLUETOOTH_SCAN and BLUETOOTH_CONNECT permissions altogether?

garudaonekh commented 2 years ago

Did you removed just the android:usesPermissionFlags="neverForLocation" or both the BLUETOOTH_SCAN and BLUETOOTH_CONNECT permissions altogether?

Just the useFlagpermission