darryncampbell / darryncampbell-cordova-plugin-intent

General purpose intent shim layer for cordova appliations on Android. Handles various techniques for sending and receiving intents.
MIT License
86 stars 130 forks source link

After install "ionic cordova plugin add com-darryncampbell-cordova-plugin-intent" #92

Closed snaveenpandi closed 4 years ago

snaveenpandi commented 4 years ago

After install "ionic cordova plugin add com-darryncampbell-cordova-plugin-intent" plugin app apk build failed

I am using ionic version 3.20.0 cordova version 9.0.0 (cordova-lib@9.0.1)

E:\naveen\Test\saranya\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; ^ E:\naveen\Test\saranya\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 Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 2 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 6s

Task :app:compileDebugJavaWithJavac FAILED 24 actionable tasks: 6 executed, 18 up-to-date E:\naveen\Test\saranya\platforms\android\gradlew: Command failed with exit code 1 Error output: E:\naveen\Test\saranya\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; ^ E:\naveen\Test\saranya\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 Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 2 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 6s [ERROR] An error occurred while running cordova run android (exit code 1).

darryncampbell commented 4 years ago

Please try using version 1.3.0 of this plugin, I think the format is

ionic cordova plugin add com-darryncampbell-cordova-plugin-intent@1.3.0

snaveenpandi commented 4 years ago

working fine,thnx

abdullahMYMA commented 2 years ago

Please try using version 1.3.0 of this plugin, I think the format is

ionic cordova plugin add com-darryncampbell-cordova-plugin-intent@1.3.0

thanks bro its working fine