theparitt opened a new issue #697:
URL: https://github.com/apache/cordova-plugin-camera/issues/697
# Bug Report
## Problem
### What is expected to happen?
I cannot run cordova
### What does actually happen?
Task :app:mergeDebugJavaResource FAILED
I tried to enable adnroidx but the error is still
## Information
> Task :app:compileDebugJavaWithJavac FAILED
C:\Users\I-w-I\Dropbox\mobile\mormit\platforms\android\app\src\main\java\org\apache\cordova\camera\CameraLauncher.java:42:
error: package android.support.v4.content does not exist
import android.support.v4.content.FileProvider;
^
C:\Users\I-w-I\Dropbox\mobile\mormit\platforms\android\app\src\main\java\org\apache\cordova\camera\FileProvider.java:21:
error: package android.support.v4.content does not exist
public class FileProvider extends android.support.v4.content.FileProvider {}
^
C:\Users\I-w-I\Dropbox\mobile\mormit\platforms\android\app\src\main\java\org\apache\cordova\camera\CameraLauncher.java:296:
error: cannot find symbol
this.imageUri = FileProvider.getUriForFile(cordova.getActivity(),
^
symbol: method getUriForFile(Activity,String,File)
location: class FileProvider
C:\Users\I-w-I\Dropbox\mobile\mormit\platforms\android\app\src\main\java\org\apache\cordova\camera\CameraLauncher.java:823:
error: cannot find symbol
Uri tmpFile =
FileProvider.getUriForFile(cordova.getActivity(),
^
symbol: method getUriForFile(Activity,String,File)
location: class FileProvider
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note:
C:\Users\I-w-I\Dropbox\mobile\mormit\platforms\android\app\src\main\java\org\apache\cordova\file\AssetFilesystem.java
uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
> Task :app:mergeDebugJavaResource FAILED
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app: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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing
com.android.build.gradle.internal.tasks.Workers$ActionFacade
> com.google.common.base.VerifyException (no error message)
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you
experiencing the issue? -->
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [ ] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [ ] I included all the necessary information above
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]