Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OneSignal Cordova Not Working with Android Api 29 #658

Closed
rahulsindal opened this issue Sep 12, 2020 · 14 comments
Closed

OneSignal Cordova Not Working with Android Api 29 #658

rahulsindal opened this issue Sep 12, 2020 · 14 comments

Comments

@rahulsindal
Copy link

rahulsindal commented Sep 12, 2020

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:

@holy-dev
Copy link

I need fix too

@TraceDeTrail
Copy link

Hello, I have exactly the same problem...

@luanmnz
Copy link

luanmnz commented Sep 15, 2020

I have the same problem... Any solution?

@rahulsindal
Copy link
Author

issue solved after update cordova lateset pre-release plugin.
npm i cordova@10.0.1-nightly.2020.9.15.51fb44c0

@jpturski
Copy link

I'm facing the same issue.

@dariocarbone
Copy link

dariocarbone commented Oct 2, 2020

updated to the lastes nightly build, but unfortunately not working....

@chacabuk
Copy link

chacabuk commented Oct 2, 2020

Same hear!
I try today with: cordova@10.0.1-nightly.2020.10.2.7f89fcec

Any solution?

@TraceDeTrail
Copy link

I also tried with a cordova pre-release but without success...

@rgomezp
Copy link
Contributor

rgomezp commented Oct 2, 2020

Duplicate of #657

@Topiya
Copy link

Topiya commented Oct 3, 2020

I am facing the same issue.

@FbPalmabit
Copy link

I have exactly this problem

@luanmnz
Copy link

luanmnz commented Oct 8, 2020

Im facing the same issue, and i need to update my android api to 29

@Topiya
Copy link

Topiya commented Oct 9, 2020

For now I solved my problem using this link.

@jkasten2
Copy link
Member

This is now fixed part of the OneSignal-Gradle-Plugin 0.12.9 update used by this plugin. You may have to do a clean build for this new version to be pulled in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests