Cordova Slack Digest

Tue, 08 Mar 2022 08:21:26 GMT

User count: 4687

Join the conversation at slack.cordova.io

Channel #general (3 messages)


Mon, 07 Mar 2022 10:09:21 GMT

@niklasmerz says

We now also have a Twitter community for Cordova https://twitter.com/i/communities/1493862820798251008

Mon, 07 Mar 2022 20:10:25 GMT

@harel.mazor says

Is there a way to know what part of the build changes the android manifest file? I'm trying to use cordiva-plugin-oauth and when I add the pluging with a custom scheme the android manifest is as expected, but when I run the project the manifest changes and the custom scheme dissapears. Is there a verbose mode or something similar?

Mon, 07 Mar 2022 20:21:22 GMT

@norman137 says

there is a --verbose flag but I don't think it displays any diffs or changes for the android manifest. It might list (not sure tbh) some simple lines like <edit-config> or <config-file> calls.

Channel #cordova-android (7 messages)


Mon, 07 Mar 2022 17:05:13 GMT

@nepmontanez says

Hi guys, im still running an issue even if the targetSDKversion is 30 using Android 10.1.1. Is this because I used ionic webview engine? error below..

Mon, 07 Mar 2022 17:06:32 GMT

@nepmontanez says

Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=C:\Users\<PC_User>\AppData\Local\Android\Sdk (recommended setting)
ANDROID_HOME=undefined (DEPRECATED)
Using Android SDK: C:\Users\<PC_User>\AppData\Local\Android\Sdk
Reading build config file: C:\<Project_Name>\<Project_Name>\build.json

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See <https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD SUCCESSFUL in 5s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app

&gt; Task :CordovaLib:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.                                                                    

&gt; Task :app:compileDebugJavaWithJavac FAILED                                                                            
C:\&lt;Project_Name&gt;\&lt;Project_Name&gt;\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:\&lt;Project_Name&gt;\&lt;Project_Name&gt;\platforms\android\app\src\main\java\com\ionicframework\cordova\webview\IonicWebViewEngine.java:137: error: cannot find symbol
    @RequiresApi(Build.VERSION_CODES.LOLLIPOP)
     ^
  symbol:   class RequiresApi
  location: class com.ionicframework.cordova.webview.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.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
&gt; 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>

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See <https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD FAILED in 1m 34s
37 actionable tasks: 37 executed
Command failed with exit code 1: C:\&lt;Project_Name&gt;\&lt;Project_Name&gt;\platforms\android\gradlew cdvBuildDebug -b C:\&lt;Project_Name&gt;\&lt;Project_Name&gt;\platforms\android\build.gradle```

Mon, 07 Mar 2022 17:11:30 GMT

@nepmontanez says

thank you in advance to a reply

Mon, 07 Mar 2022 17:11:54 GMT

@jcesarmobile says

Use version 5 of the plugin

Mon, 07 Mar 2022 17:13:52 GMT

@nepmontanez says

what specific plugin sir @jcesarmobile?

Mon, 07 Mar 2022 17:15:04 GMT

@nepmontanez says

is it cordova-plugin-ionic-webview?

Mon, 07 Mar 2022 17:34:34 GMT

@nepmontanez says

updated the ionic-webview plugin to 5 - build successfully. thank u again @jcesarmobile 🙂