Could not get agp plugin version

I’ve built my capacitor app, and trying to build the android version I’m getting these errors, and google isn’t being my friend today. Has anyone come across these?

Configure project :app
Error ‘Plugin-Version’ of ‘unspecified’ for ‘com.android.build.gradle.AppPlugin@77632b6c’ is not a valid version number
OneSignal Warning: Could not get AGP plugin version

Configure project :capacitor-cordova-android-plugins
Error ‘Plugin-Version’ of ‘unspecified’ for ‘com.android.build.gradle.LibraryPlugin@1f7803cc’ is not a valid version number
OneSignal Warning: Could not get AGP plugin version

getting the same error

did you find any solution?

no, not yet sadly. Im not finding much out about it online either

me too … I found this link which says it is handled in this PR … I guess the next version will have it fixed

PR …149

I’ll keep my eye out for that, thanks

Did you find a solution? ı am getting the same error …

2 Likes

You need to update the NDK on Android Studio

No version of NDK matched the requested version 21.0.6113669. Versions available locally: ..*******