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

后端 未结 4 512
伪装坚强ぢ
伪装坚强ぢ 2020-12-15 22:31

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

I am getting this error after updating my android studio.

this is my app.grad

4条回答
  •  醉酒成梦
    2020-12-15 23:08

    Same thing happened to me.

    I am not a Gradle expert but my solution was a little bit less drastic. I just edited the bintray.gradle file by moving the line:

    apply plugin: 'maven-publish'
    

    just before the publishing action.

    This problem seems to be related with this:

    https://github.com/researchgate/gradle-release/issues/125

提交回复
热议问题