報(bào)錯(cuò)如下
Directory 'D:\downloads\TranslateApp-master\TranslateApp-master\app\build\retrolambda\advanceRelease' specified for property 'inputDir' does not exist.
網(wǎng)上查到的解決方案
刪除.gradle和.idea文件以及build文件夾霞玄,重新編譯就能解決。
或者使用 Build -> Build APK.編譯
https://stackoverflow.com/questions/34990830/app-debug-unaligned-apk-specified-for-property-inputfile-does-not-exist
但對(duì)我來(lái)說(shuō)沒(méi)有生效浓镜!
最后試了另一個(gè)方式溃列。
編譯的時(shí)候在Build Sync有這么一個(gè)報(bào)錯(cuò)
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'
}
最后終于解決了這個(gè)問(wèn)題,可以運(yùn)行安裝膛薛,現(xiàn)在又有新的Bug 需要我來(lái)解決听隐。。哄啄。