flutter_lamp icon indicating copy to clipboard operation
flutter_lamp copied to clipboard

java file uses over overrides a deprecated API

Open AboveBelowAround opened this issue 7 years ago • 1 comments

whilst building the example app on an android device.

Resolving dependencies... Running 'gradlew assembleDebug'... Note: /Users/user/Development/flutter/.pub-cache/hosted/pub.dartlang.org/lamp-0.0.5/android/src/main/java/plugins/flutter/lamp/lamp/LampPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Built build/app/outputs/apk/debug/app-debug.apk.

AboveBelowAround avatar Jul 22 '18 20:07 AboveBelowAround

the problem is, that for android this library uses the deprecated android.hardware.Camera, which is only supported up to android sdk version 20 for higher versions using android.hardware.camera2 is recommendet on my side I tried to change the LampPlugin, and it compiles without errors, sadly the light still wont turn on

remijeas avatar Nov 21 '18 09:11 remijeas