错误:访问后无法配置“发布"扩展 [英] Error:Cannot configure the 'publishing' extension after it has been accessed

查看:23
本文介绍了错误:访问后无法配置“发布"扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:无法在访问后配置发布"扩展.

Error:Cannot configure the 'publishing' extension after it has been accessed.

更新我的 android studio 后出现此错误.

I am getting this error after updating my android studio.

这是我的 app.gradle

this is my app.gradle

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion '23.0.2'  

defaultConfig {
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    vectorDrawables.useSupportLibrary = true
    generatedDensities = []
}
aaptOptions {
    additionalParameters "--no-version-vectors"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), proguard-rules.pro'
    }
}
dexOptions {
    preDexLibraries = false
    javaMaxHeapSize "4g"
        }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('libs/universal-image-loader-1.9.5.jar')
compile project(':databaseAutoCompleteLibrary')
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.android.support:support-v4:23.2.0'
compile 'com.android.support:gridlayout-v7:23.2.0'
compile 'com.loopj.android:android-async-http:1.4.9'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.baoyz.swipemenulistview:library:1.3.0'
compile 'milyn:opencsv:1.6'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile project(':MPChartLib')
compile project(':filechooserlibrary')
//compile 'com.android.support:support-v4:18.0.0'
//compile 'com.android.support:appcompat-v7:18.0.+'
compile 'com.android.support:design:23.2.0'
compile 'com.android.support:support-v13:23.2.0'
compile 'com.android.support:appcompat-v7:23.2.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile project(':Volley')
compile 'com.google.android.gms:play-services:8.4.0'
}

请提供任何解决方案.我正在使用凌空图书馆.谢谢.

please provide any solution. I am using volley library. Thanks.

推荐答案

我在升级到最新的工作室后遇到了同样的问题.

I have faced the same issue after upgrading to latest studio.

我不确定根本原因,但我所做的是

I am not sure about the root cause but what I did is

在 volley build.gradle 的下面评论

comment below line from volley build.gradle

apply from: 'bintray.gradle'

正如我所见,您的依赖项中有许多项目.如果可能,所有评论都相同,然后再次尝试同步.

As I can see there many project are there in you dependencies. If possible comment same from all and try syncing again.

这篇关于错误:访问后无法配置“发布"扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆