报错如下
Directory 'D:\downloads\TranslateApp-master\TranslateApp-master\app\build\retrolambda\advanceRelease' specified for property 'inputDir' does not exist.
网上查到的解决方案
删除.gradle和.idea文件以及build文件夹,重新编译就能解决。
或者使用 Build -> Build APK.编译
https://stackoverflow.com/questions/34990830/app-debug-unaligned-apk-specified-for-property-inputfile-does-not-exist
但对我来说没有生效!
最后试了另一个方式。
编译的时候在Build Sync有这么一个报错
Gradle Sync Issues:
INFO: 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
Affected Modules: app
https://developer.android.com/studio/write/java8-support?utm_source=android-studio
官方告诉我们
试了一下使用Java 8需要
移除 me.tatarka.retrolambda
// Remove the following plugin.
// apply plugin: 'me.tatarka.retrolambda'
根目录build.gradle
dependencies {
// classpath 'me.tatarka:gradle-retrolambda:3.2.4'
}
最后终于解决了这个问题,可以运行安装,现在又有新的Bug 需要我来解决。。。