10

when trying to build the project for android (ionic cordova build android --prod --release), I get the following error: Error 'Plugin-Version' of 'unspecified' for 'com.android.build.gradle.AppPlugin@fbc39d3' is not a valid version number

OneSignal Warning: Could not get AGP plugin version

** I use cordova, I am stuck on that error as no material or explanations are coming to solve it Ionic CLI : 6.13.1 Cordova CLI : 10.0.0 Cordova Platforms : android 9.1.0

Martin Lopez
  • 101
  • 1
  • 4

1 Answers1

0

Both lines are from OneSignal-Gradle-Plugin and indicate it could not find the version of the AGP (Android Gradle Plugin) in your project.

Error 'Plugin-Version' of 'unspecified' for 'com.android.build.gradle.AppPlugin@fbc39d3' is not a valid version number

OneSignal Warning: Could not get AGP plugin version

This Error and Warning messages will not cause a build failure. The AGP version detection is only used enable AGP 2.x.x fall back logic, if the version isn't found it assumes you are using AGP 3+. AGP 3 was first added in Cordova Android 7.0.0 so as long as you are using this version or newer this won't cause any side effects either.

Until OneSignal-Gradle-Plugin improves this version detection you can safely ignore these two messages from it.

jkasten
  • 3,899
  • 3
  • 32
  • 51