【错误记录】编译安卓项目报错 ( AndroidMavenPlugin 错误 )
生活随笔
收集整理的這篇文章主要介紹了
【错误记录】编译安卓项目报错 ( AndroidMavenPlugin 错误 )
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
文章目錄
- 一、報錯信息
- 二、解決方案
一、報錯信息
編譯了一個 2016 年的項目 , 報錯如下 :
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>.二、解決方案
項目配置的 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'在網上找的 android-maven-gradle-plugin 插件與 Gradle 版本對應關系 ;
總結
以上是生活随笔為你收集整理的【错误记录】编译安卓项目报错 ( AndroidMavenPlugin 错误 )的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【错误记录】安卓编译错误 ( Could
- 下一篇: 【Android FFMPEG 开发】A