0
点赞
收藏
分享

微信扫一扫

No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices.

龙毓七七 2023-05-01 阅读 78


最近从GitHub上down下来一个项目,却在导入到AS的时候一直报Error:No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices.这个错误

No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices._ci

clean一下项目之后,报出了详细错误信息

No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices._github_02

接下来仔细看异常信息,Could not create plugin of type 'AndroidMavenPlugin'.这个意思是说meaven原因,修改也比较简单,找到项目底下的build.gradel文件,修改它的版本就可以了

dependencies {
     

    
'com.android.tools.build:gradle:2.2.0'


    
"org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1"


    
'com.github.dcendents:android-maven-gradle-plugin:1.3'


    
'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'


    
 
     


    
// NOTE:


    
// in the individual module build.gradle files


    

       }

我目前的版本是1.3,将它改成1.4.1就可以了,如果还是不行那就在改下版本试一试


dependencies {
     


    
'com.android.tools.build:gradle:2.2.0'


    
"org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1"


    
'com.github.dcendents:android-maven-gradle-plugin:1.4.1'


    
'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'


    
 
     


    
// NOTE:


    
// in the individual module build.gradle files


    

       }


最近从GitHub上down下来一个项目,却在导入到AS的时候一直报Error:No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices.这个错误

No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices._ci

clean一下项目之后,报出了详细错误信息

No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices._github_02

接下来仔细看异常信息,Could not create plugin of type 'AndroidMavenPlugin'.这个意思是说meaven原因,修改也比较简单,找到项目底下的build.gradel文件,修改它的版本就可以了


dependencies {
     


    
'com.android.tools.build:gradle:2.2.0'


    
"org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1"


    
'com.github.dcendents:android-maven-gradle-plugin:1.3'


    
'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'


    
 
     


    
// NOTE:


    
// in the individual module build.gradle files


    

       }

我目前的版本是1.3,将它改成1.4.1就可以了,如果还是不行那就在改下版本试一试

dependencies {
     

    
'com.android.tools.build:gradle:2.2.0'


    
"org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1"


    
'com.github.dcendents:android-maven-gradle-plugin:1.4.1'


    
'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'


    
 
     


    
// NOTE:


    
// in the individual module build.gradle files


    

       }

举报

相关推荐

0 条评论