今天clone一个使用gradle5.1.1版本的项目,sync后出现failed to notify build listener.
的问题,并且出现的位置是随机的,比如ModuleComponentIdentifierImpl.getModuleIdentifier()
等。查到的基本都是文不对题的回答。
经过多方查证后是gradle5.0和android studio3.2不兼容的问题,别人给出的解决方案是升级android studio到3.3R,但是更建议使用4.10版本的gradle
I am migrate to ver android studio 3.3R and to this moment I do not have problem with gradle 5.0, but I recomende you to build your project with gradle ver 4.10.
How m-r Jacomet write, Gradle NOT compatible with Android Studio 3.2.
To IntelleJ IDE, I see that they have a big problem with visual component preview, must write every time for new name on Theme listing (Base) or change name implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'...to alpha1..
To my self only, I think my be, If Gradle is not compatible with Android Studio and Intellj why thy do it Gradle?
For render problem intelliJ for android developer
Check your build.gradle (Module: app) file and change:
compileSdkVersion 28
targetSdkVersion 28
To:
compileSdkVersion 27
targetSdkVersion 27
之后重新sync即可,如果遇到了卡在indexing pause due to batch update
的问题,单击该进度条右侧的播放按钮即可
网友评论