android - “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
解决方案
推荐阅读
- ruby-on-rails - docker上的Rails api反应和nginx
- c# - ASP.NET MVC 控制器以字符串格式获取 Request.Form 如何从我的类对象中获取值?
- django - Django - 如何获取连接到用户的表?
- javascript - 我无法理解这个递归概念
- javascript - 是否可以在单击文本后获取围绕文本的路径ID,而无需分组
- java - 我的代码适用于 IntelJ,但不适用于测试系统
- mongodb - 具有多个 id 的 MongoDB GroupBy
- java - 我没有错误,但为什么我的应用程序一直关闭
- swift - 检测 AR 物体上的手指?
- php - 如何在 PHP 中解析这个 JSON(或看起来像 json 的东西)(尝试了一切)?