VirtualApp出现无法编译问题整理
来源:互联网 发布:sql随机生成6位数字 编辑:程序博客网 时间:2024/05/22 01:48
最近看到github上出现了VirtualApp 看了作者的介绍感觉很不错,然后就clone下来编译并研究一下,但是编译过程出现了如下错误提示,看着有些头疼
由于VirtualApp是需要将提供的android.jar和sdk里面的jar替换 这里就省略….
编译错误提示
1: Task failed with an exception.-----------* What went wrong:Execution failed for task ':app:compileDebugJavaWithJavac'.> When running gradle with java 5, 6 or 7, you must set the path to jdk8, either with property retrolambda.jdk or environment variable JAVA8_HOME* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.==============================================================================2: Task failed with an exception.-----------* What went wrong:A problem was found with the configuration of task ':app:compileRetrolambdaDebug'.> Directory '/Users/cuiran/git/VirtualApp/VirtualApp/app/build/retrolambda/debug' specified for property 'inputDir' does not exist.* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.==============================================================================
根据错误提示
首先,需要安装Jdk1.8 然后设置jdk1.8环境变量
然后,在android studio->Preferences->Path Variables添加
如图所示
最后需要在build.gradle中添加代码
retrolambda { jdk '/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home'//System.getenv("JAVA_8") oldJdk System.getenv("JAVA8_HOME") javaVersion JavaVersion.VERSION_1_7 }
这样就可编译通过!
0 0
- VirtualApp出现无法编译问题整理
- 出现莫名奇妙的问题之myeclipse无法自动编译
- Java调用python,出现“无法解析的编译问题,PythonInterpreter无法解析为类型”
- VsIDE编译问题整理
- 编译ffmpeg问题整理
- codeblocks 无法编译问题
- libusb编译出现问题
- FFmpeg编译出现问题
- busybox编译出现问题
- 编译出现问题
- SSD编译出现问题
- MAC OS下Qt SDK1.2安装后出现g++-4.2问题无法编译
- ffmpeg库在windows下编译出现无法链接的问题的解决方法
- CTeX 在编译时出现的图片文件无法识别问题
- VS2008编译出现问题:error C2485: “__restrict”: 无法识别的扩展属性 解决办法
- 关于vs2010 C++编译链接总是出现“LNK:2019 无法解析的外部符号”的问题
- cocos2dx 3.x 在wp开发时,使用sqlite3出现无法使用/ZW编译的问题
- qt编译中常出现的无法解析的外部符号问题
- openssl证书生成和源码wince编译及其使用
- (valueAnimator)动画setDuration不是一个精确值long?float才讲得通呀
- Jmeter之JDBC Request使用方法(oracle)
- Fragment的切换
- RasSetEapUserData
- VirtualApp出现无法编译问题整理
- Implement Stack using Queues
- 欢迎使用CSDN-markdown编辑器
- sspanel按月结算,修改go版代码【mysql api】
- Small Game
- Android截屏(fb0)
- 支持向量分类机---乳腺癌的诊断
- CSU - 1161 Sums
- NOIP2012 提高组 复赛 day1 game