【错误记录】编译安卓项目报错 ( AndroidMavenPlugin 错误 )
生活随笔
收集整理的這篇文章主要介紹了
【错误记录】编译安卓项目报错 ( AndroidMavenPlugin 错误 )
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
文章目錄
- 一、報(bào)錯(cuò)信息
- 二、解決方案
一、報(bào)錯(cuò)信息
編譯了一個(gè) 2016 年的項(xiàng)目 , 報(bào)錯(cuò)如下 :
Build file 'D:\002_Project\002_Android_Learn\ffmpeg-android-java-0.3.2\FFmpegAndroid\build.gradle' line: 2A problem occurred evaluating project ':FFmpegAndroid'. > Failed to apply plugin [id 'com.github.dcendents.android-maven']> Could not create plugin of type 'AndroidMavenPlugin'.> Unable to determine constructor argument #1: missing parameter of type Factory, or no service of type Factory<LoggingManagerInternal>.二、解決方案
項(xiàng)目配置的 com.github.dcendents:android-maven-gradle-plugin 插件版本太老 ;
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'換成 1.5 版本的 com.github.dcendents:android-maven-gradle-plugin Gradle 插件 ;
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'在網(wǎng)上找的 android-maven-gradle-plugin 插件與 Gradle 版本對(duì)應(yīng)關(guān)系 ;
總結(jié)
以上是生活随笔為你收集整理的【错误记录】编译安卓项目报错 ( AndroidMavenPlugin 错误 )的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【错误记录】安卓编译错误 ( Could
- 下一篇: 【Android FFMPEG 开发】A