Android studio与windows系统兼容问题
来源:互联网 发布:怎么用国外网络 编辑:程序博客网 时间:2024/06/05 19:32
故事的铺垫:前段时间,常用的电脑进厂了,从家里随便找了台电脑出来,配置环境后,跑其他的项目都没遇到什么问题,直到拿到之前的一个比较多依赖包的项目......
故事的开展:从svn上讲项目拿下来后,gradle开始build...... 然后......还没有什么事(哈哈),插上手机,开始running app,等呀等呀,然后......特么就报错了
废话不多说了,直接上问题
Error:Error: Could not create the Java Virtual Machine.Error:Error: A fatal exception has occurred. Program will exit.Error:Invalid maximum heap size: -Xmx4gError:The specified size exceeds the maximum representable size.Error:Error: Could not create the Java Virtual Machine.Error:Error: A fatal exception has occurred. Program will exit.Error:Invalid maximum heap size: -Xmx4gError:The specified size exceeds the maximum representable size.Error:Error: Could not create the Java Virtual Machine.Error:Error: A fatal exception has occurred. Program will exit.Error:Invalid maximum heap size: -Xmx4gError:The specified size exceeds the maximum representable size.Error:Error: Could not create the Java Virtual Machine.Error:Error: A fatal exception has occurred. Program will exit.Error:Invalid maximum heap size: -Xmx4gError:The specified size exceeds the maximum representable size.Error:Execution failed for task ':app:transformClassesWithDexForDebug'.> com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {--dex --force-jumbo --num-threads=4 --multi-dex --output E:\as_workplace\Hello\app\build\intermediates\transforms\dex\debug\folders\1000\2\libammsdk_ed5cd63796688fdf7bc7a68f4787cddb6597a691 E:\as_workplace\Hello\app\libs\libammsdk.jar}
一开始看到这一句信息“Error:Execution failed for task ':app:transformClassesWithDexForDebug'.”,然后就看是了我的纠结之旅,把所有的包都过了一遍,只有v4包可能存在包冲突,行,咱百度一下吧,各种gradle配置博文中说到的方法全试过了,clean与rebulde等方法都不好用,没效果。
时间过去了两天,还是没找出问题的所在......mmp
今天,我刚好要从旧硬盘上拷资料,旧硬盘上是原来的工作环境,突发奇想地想要试一试,换硬盘启动切换完开发环境,然后当然就是跑项目了,特么同样的代码,跑...跑起来了呀,我这两天到底干了什么?我是谁?我在哪里?
对比一下这两个工作环境有什么不同,发现现在这台电脑是x64处理器,也就是64位的机子,但是装的竟然是32位的win10的操作系统。已经无力吐槽了......
因为装的是32位的系统,自然用的也是32位开发环境。事情到这里就算告一段落了,不再像前两天那样摸不着头脑了。
将问题锁定为处理器或系统的兼容问题。
阅读全文
0 0
- Android studio与windows系统兼容问题
- Windows 7系统Visual Studio 2005兼容问题
- android studio+genymotion windows系统下搭建
- Windows系统下Android studio常用快捷键
- Windows系统Android Studio Gradle配置
- Windows系统下Android Studio快捷键总结
- Windows系统下Android Studio快捷键总结
- Windows系统Android Studio Gradle配置
- Visual Studio与ActiveX控件兼容问题解决
- [Android Studio] Windows 7 下载与安装
- Android Studio 换系统如何继续使用(windows系统)
- windows 2008 下 tomcat 与jdk 兼容问题
- windows dos 与nunix 格式不兼容问题
- Linux zip命令 与 windows的兼容问题
- Visual Studio 2012与此版本Windows不兼容问题
- Weblogic9.2.2与AIX系统不兼容问题
- Android系统的不同分辨率的兼容问题
- 当visual studio快捷键与windows系统冲突时解决办法
- Go的声明和变量
- Linux下一个单进程并发服务器的实例 使用select
- react Native
- sso原理浅析
- centos6.5安装mysql6.5
- Android studio与windows系统兼容问题
- js+php小错误
- Nginx+Tomcat搭建高性能负载均衡集群
- BZOJ 2150: 部落战争 二分图最小路径覆盖
- 【总结】Bandit算法与推荐系统
- CUDA 学习之路(1)
- 安装mysql5.7.18
- 谨以此文献给正在面临选择的你
- 前端面试题<1>