Hi, i’m getting build errors when i’m install native “WebIntent” plugin in my app on Ionic v.3
BUILD FAILED in 15s
C:\Users\Developer\Desktop\UaiDoc problema\platforms\android\gradlew: Command failed with exit code 1 Error output:
C:\Users\Developer\Desktop\UaiDoc problema\platforms\android\app\src\main\java\com\ionicframework\cordova\webview\IonicWebViewEngine.java:11: error: package android.support.annotation does not exist
import android.support.annotation.RequiresApi;
^
C:\Users\Developer\Desktop\UaiDoc problema\platforms\android\app\src\main\java\io\github\pwlin\cordova\plugins\fileopener2\FileProvider.java:28: error: package android.support.v4.content does not exist
public class FileProvider extends android.support.v4.content.FileProvider {
^
C:\Users\Developer\Desktop\UaiDoc problema\platforms\android\app\src\main\java\nl\xservices\plugins\FileProvider.java:4: error: package android.support.v4.content does not exist
public class FileProvider extends android.support.v4.content.FileProvider {
^
C:\Users\Developer\Desktop\UaiDoc problema\platforms\android\app\src\main\java\com\ionicframework\cordova\webview\IonicWebViewEngine.java:122: error: cannot find symbol
@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
^
symbol: class RequiresApi
location: class IonicWebViewEngine.ServerClient
C:\Users\Developer\Desktop\UaiDoc problema\platforms\android\app\src\main\java\io\github\pwlin\cordova\plugins\fileopener2\FileOpener2.java:114: error: cannot find symbol
path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".opener.provider", file);
^
symbol: method getUriForFile(Context,String,File)
location: class FileProvider
C:\Users\Developer\Desktop\UaiDoc problema\platforms\android\app\src\main\java\io\github\pwlin\cordova\plugins\fileopener2\FileOpener2.java:122: error: cannot find symbol
Uri path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".opener.provider", file);
^
symbol: method getUriForFile(Context,String,File)
location: class FileProvider
C:\Users\Developer\Desktop\UaiDoc problema\platforms\android\app\src\main\java\nl\xservices\plugins\SocialSharing.java:169: error: cannot find symbol
fileUri = FileProvider.getUriForFile(webView.getContext(), cordova.getActivity().getPackageName()+".sharing.provider", new File(fileUri.getPath()));
^
symbol: method getUriForFile(Context,String,File)
location: class FileProvider
C:\Users\Developer\Desktop\UaiDoc problema\platforms\android\app\src\main\java\nl\xservices\plugins\SocialSharing.java:285: error: cannot find symbol
fileUri = FileProvider.getUriForFile(webView.getContext(), cordova.getActivity().getPackageName()+".sharing.provider", new File(fileUri.getPath()));
^
symbol: method getUriForFile(Context,String,File)
location: class FileProvider
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
8 errors
FAILURE: Build 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 15s
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
If i don’t use this plugin the build run with no problems, but i need a web intent plugin to receive data from another apps