I am getting mentioned error when importing this project: https://github.com/chrisbanes/cheesesquare.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
To resolve this issue, replace in build.gradle your classpath 'com.android.tools.build:gradle:apla3XX.XX' by classpath 'com.android.tools.build:gradle:2.3.3' to downgrade your graddle.
https://github.com/firebase/quickstart-android/issues/294
回答2:
I didn't know there is a preview version (3.0 Canary 7) for the android studio. Well downloaded it, the app is working.
回答3:
One of the solution is to download Android 3.0 but if you don't want to use beta version you can change the gradle version to whichever version you prefer. To change version follow these steps
File -> Project Structure -> Project -> change gradle version to 3.3 and android plugin version to the android studio version you are using. -> Rebuild your project.