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

App crash when use in release mode #15

Open
sikaiichi opened this issue Mar 2, 2023 · 5 comments
Open

App crash when use in release mode #15

sikaiichi opened this issue Mar 2, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@sikaiichi
Copy link

Im install last version package, and my flutter version is 3.3.9 .
The app worked at debug mode , but when use in release mode . It crash . Can u help me please . Hope to see u feedback soon .Thanks
Tam

@sikaiichi sikaiichi added the bug Something isn't working label Mar 2, 2023
@PavelMasuk
Copy link

In example/android/app/src/main/AndroidManifest.xml add <uses-permission android:name="android.permission.INTERNET" /> right after the NFC permission. The issue will be fixes with next release. The problem is in the demo app, not plugin.

@sikaiichi
Copy link
Author

I had already add . But not working . Why should you add NFC permission in here. I clone default source in pub.dev and release a app . But its still not work .

@sikaiichi
Copy link
Author

im tried your way with demo app . And its worked . But when run will my project so run error like issue here #13 . Error like that :

(use -source 8 or higher to enable default methods)
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_face_api-4.1.1/android/src/main/java/io/flutter/plugins/regula/faceapi/flutter_face_api/FlutterFaceApiPlugin.java:168: error: lambda expressions are not supported in -source 7
Instance().startLiveness(getContext(), (response) -> callback.success(JSONConstructor.generateLivenessResponse(response).toString()));
^
(use -source 8 or higher to enable lambda expressions)
/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_face_api-4.1.1/android/src/main/java/io/flutter/plugins/regula/faceapi/flutter_face_api/JSONConstructor.java:458: error: method references are not supported in -source 7
result.put("detections", generateList(input.getDetections(), JSONConstructor::generateMatchFacesDetection));
^
(use -source 8 or higher to enable method references)
3 errors

.Please tell my what my problem and how to fix that. Thanks @PavelMasuk

@PavelMasuk
Copy link

Looks like you are using java 7, we require at least java 8 to work with our library.

@sikaiichi
Copy link
Author

Thanks . I fixed my issue . Im upgrade my version gradle from 4.1.0 to 7.2.0 that fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants