flutter-devs / camera_utils Goto Github PK
View Code? Open in Web Editor NEWA Flutter plugin to resolve various camera utils.
License: Other
A Flutter plugin to resolve various camera utils.
License: Other
"android.support.v4.content.FileProvider"
=>
androidx.core.content.FileProvider
Plugin lacks support of AndroidX
java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=42, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.example.easykas/com.karumi.dexter.DexterActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference
When i add camera_utils: 0.1.8, to pubspec.yaml it throws the below error:
Launching lib/main.dart on SM G925I in debug mode...
/Users/pawanshahani/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/camera_utils-0.1.8/android/src/main/java/com/aeologic/camerautils/CameraUtilsPlugin.java:15: error: package android.support.v4.content does not exist
import android.support.v4.content.FileProvider;
^
/Users/pawanshahani/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/camera_utils-0.1.8/android/src/main/java/com/aeologic/camerautils/CameraUtilsPlugin.java:198: error: cannot find symbol
uri = FileProvider.getUriForFile(activity, activity.getPackageName() + ".flutter.provider", mediaFile);
^
symbol: variable FileProvider
location: class CameraUtilsPlugin
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':camera_utils:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 52s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin camera_utils...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'camera_utils'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 22s
Exception: The plugin camera_utils could not be built due to the issue above.
Exited (sigterm)
Flutter Doctor goes as below:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.20.0, on Mac OS X 10.15.3 19D76, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.47.3)
[✓] Connected device (1 available)
• No issues found!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.