Android studio问题记录

1. 疯狂indexing

最近几个版本的Android studio有时候一直会不停的indexing,什么操作都不让执行,现在有两种解决办法:
简单粗暴方法一:关闭Android studio,重新打开,问题解决
方法二:File > Invalidate Caches/Restart

个人感觉操作大同小异,就是重启IDE,希望Google能早日修复

2.依赖项报错:

QQ截图20171030095418.png

解决方案:
将compile project(':wheel')
改为
compile project(path: ':easeUI', configuration: 'default')

3.retrolambda报错:

Warning:One of the plugins you are using supports Java 8 language features. To try the support built into the Android plugin, remove the following from your build.gradle:
    apply plugin: 'me.tatarka.retrolambda'
To learn more, go to https://d.android.com/r/tools/java-8-support-message.html

解决办法:

module层gradle中的apply plugin: 'me.tatarka.retrolambda'
及project层gradle中的classpath 'me.tatarka:gradle-retrolambda:3.2.5'
注释掉

4.apt插件报错

QQ截图20171030102700.png

解决方案:
1.在project的build.gradle中删除
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
2.在module的build.gradle中删除
apply plugin: 'android-apt'
3.将module的build.gradle文件中的dependency
中所有的apt改为annotationProcessor

你可能感兴趣的:(Android studio问题记录)