-
Notifications
You must be signed in to change notification settings - Fork 17
error during build OneSignal Warning: Could not get AGP plugin version #150
Comments
@robpinto Do you get any other errors or warnings other than one you list?
It indicates this is an error but this should not interrupt the build process and it should continue so this isn't the root cause of the build failure. |
Same error here, starting today when I updated an app: `> cordova build android --release
The build finished but app does not receive notifications. |
The build finished but the app did not receive notifications. |
@robpinto Thanks for the details, glad to hear things are working for you now. @devgithub43 There are a number of reasons why a notification would not be shown on the device when OneSignal reports it was successfully sent do the device. I recommend following this troubleshooting guide for this. The warning should be cleaned up in PR #149 once it is completed and put into a release. |
Same problem for me too |
I have the same problem |
me too have the same problem |
Same here |
have you found a solution since 3 weeks ? |
same problem here |
Same here |
I have the same problem. Please, if anyone has the solution. In my case the project is in IOnic 5 with angular. |
This error doesn't interrupt the build process as this plugin moves on and assumes you have a new enough version. If you are having any issue with OneSignal I recommend checking the full log for any other errors or warnings. Please open a new issue with all the details and we can take a look. |
i have tried this ionic cordova plugin add cordova-plugin-androidx Working fine Now. |
@sehgalneha I'm on Cordova 9.0 and cordova-plugin-androidx is for < 9.0 cordova-plugin-androidx-adapter is installed fine, however. But still the error:
|
Me too have the same problem |
Same here |
me too :( |
I solved changing
AND moving this code to top:
|
|
You can safely ignore this warning, it does not affect the rest of the build.
If your build is failing then looking below this error, there will be a different root cause. |
In my case works! With Ionic 6 and Cordova 9.0. But I do some things before, like delete and reinstall platforms and node_modules, and update Gradle to 7.0. Tell me if that works for you. |
Hello, it is actually not a onesignal problem, the warning comes out, it should allow compiling. The problem in my case in is that in: this line was duplicated:
There were two puglings that used "Geolocation" and "GoogleMaps" You can do a search in the plugins folder of the project: in this case the search would be "location.gps" which was the error that came out in the console we look for this file: Important: In my case, the geolocation plugin had it and that is why I decided to eliminate the googlemaps plugin, which did not have the required one. I hope to help someone who has this problem. Greetings |
Thanks ! That works for me ! |
Hi @2diegoduque I'm having same issue, but I can't find any file with "location.gps", do you have some other tip about this?
|
@ficast I recommend that vscode give it a search in the plugins folder and as a search parameter you put "location.gps" there you should see the plugins that use it, you should look at which one is not required and the other one you delete. |
Try to use these versions: this solved my issue, i think this problem occur because current latest version of onesignal cordova plugin is 3.0.0(beta1) so because of this is beta version so i think this problem is occurring now. try to install previous versions, |
The false positive If you are seeing any other errors or warning please open a new issue here if it is related to this plugin specifically, or in the OneSignal-Cordova-SDK repo if it relates to Cordova or Ionic with OneSignal. Thanks. |
My Ionic App did build corectly with androi-cordova 8.1.0, but starting from today it gives these error. Tried to remove Platform and/or plugin and various versions of gradle, but nothing changes.
Project Setup
build.gradle
app/build.gradle
Full Error
Dependency Tree
Run
./gradlew app:dependencies
The text was updated successfully, but these errors were encountered: