Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java file uses over overrides a deprecated API #5

Open
AboveBelowAround opened this issue Jul 22, 2018 · 1 comment
Open

java file uses over overrides a deprecated API #5

AboveBelowAround opened this issue Jul 22, 2018 · 1 comment

Comments

@AboveBelowAround
Copy link

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.

@remijeas
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants