Skip to content

OneSignal Cordova Not Working with Android Api 29 #658

@rahulsindal

Description

@rahulsindal

Description:

I am not able to build Ionic 5 app with OneSignal plugin. It works with cordova-android@8.1.0 (Android target: android-28) but it does not work with cordova-android@9.0.0 (Android target: android-29).

Environment

  1. OneSignal: 2.11.1
  2. Cordova platform: android 9.0.0
  3. Android target: android-29

Anything else:

Configure project :app
WARNING: The onesignal-gradle-plugin MUST be before com.android.application!
Please put onesignal-gradle-plugin first OR update to com.android.tools.build:gradle:3.0.0 or newer!

Task :app:mergeDebugResources
OneSignalPlugin: WARNING: OneSignalPlugin: Downgraded 'com.android.support:23+' ->
28 to prevent compile errors! Recommend updating your project's compileSdkVersion!
Task :app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugResources'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find com.android.support:support-v4:28.
Searched in the following locations:

Could not find com.android.support:support-annotations:28.
Searched in the following locations:

Could not find com.android.support:appcompat-v7:28.
Searched in the following locations:

Could not find com.android.support:support-v4:28.
Searched in the following locations:

Could not find com.android.support:cardview-v7:28.
Searched in the following locations:

Could not find com.android.support:support-fragment:28.
Searched in the following locations:

Could not find com.android.support:customtabs:28.
Searched in the following locations:

Could not find com.android.support:support-annotations:28.
Searched in the following locations:

Could not find com.android.support:support-core-utils:28.
Searched in the following locations:

Could not find com.android.support:support-v4:28.
Searched in the following locations:

Could not find com.android.support:appcompat-v7:28.
Searched in the following locations:

Could not find com.android.support:cardview-v7:28.
Searched in the following locations:

Could not find com.android.support:customtabs:28.
Searched in the following locations:

Could not find com.android.support:support-v4:28.
Searched in the following locations:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions