I am using Cordova for building an ionic app.
I run cmd-
ionic Cordova build android.
this is the error that I got.
please anyone could help.
> Task :app:compileReleaseJavaWithJavac FAILED
D:\Android Development\Instagram-upload\platforms\android\app\src\main\java\com\vladstirbu\cordova\AssetProvider.java:22: error: package androidx.core.content does not
exist
import androidx.core.content.FileProvider;
^
D:\Android Development\Instagram-upload\platforms\android\app\src\main\java\com\vladstirbu\cordova\AssetProvider.java:24: error: cannot find symbol
public class AssetProvider extends FileProvider {
^
symbol: class FileProvider
D:\Android Development\Instagram-upload\platforms\android\app\src\main\java\com\vladstirbu\cordova\CDVInstagramPlugin.java:48: error: package androidx.core.content does not exist
import androidx.core.content.FileProvider;
^
D:\Android Development\Instagram-upload\platforms\android\app\src\main\java\com\vladstirbu\cordova\CDVInstagramPlugin.java:130: error: cannot find symbol
FileProvider FileProvider = new FileProvider();
^
symbol: class FileProvider
location: class CDVInstagramPlugin
D:\Android Development\Instagram-upload\platforms\android\app\src\main\java\com\vladstirbu\cordova\CDVInstagramPlugin.java:130: error: cannot find symbol
FileProvider FileProvider = new FileProvider();
^
symbol: class FileProvider
location: class CDVInstagramPlugin
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
5 errorsPreformatted text
1 post - 1 participant