Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48979

Error: package androidx.core.content does not exist

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>