首页 > 解决方案 > “com.android.build.gradle.AppPlugin@27e0e84c”的“未指定”的错误“插件版本”不是有效的版本号

问题描述

当我使用运行项目时,我将 Firebase 云消息传递插件添加到我的 ionic 项目中

离子科尔多瓦运行android

我得到这个错误

> Configure project :app
Error 'Plugin-Version' of 'unspecified' for 'com.android.build.gradle.AppPlugin@27e0e84c' is not a valid version number

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Script '../platforms/android/cordova-plugin-fcm-with-dependecy-updated/starter-FCMPlugin.gradle' line: 22

* What went wrong:
A problem occurred evaluating script.
> Cannot invoke method lastIndexOf() on null object

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':app'.
> compileSdkVersion is not specified. Please add it to build.gradle

标签: androidfirebasegradleionic-framework

解决方案


推荐阅读