android studio 真机运行的时候gradle 报错 AGPBI: {"kind":"SIMPLE","text":"Error: C
来源:互联网 发布:网络电视哪种好 编辑:程序博客网 时间:2024/06/03 04:56
原文出处:http://ask.android-studio.org/?/question/498
感谢原文作者:yeah258258
app:preDexDebug
AGPBI: {"kind":"SIMPLE","text":"Error: Could not create the Java Virtual Machine.","position":{},"original":"Error: Could not create the Java Virtual Machine."}
AGPBI: {"kind":"SIMPLE","text":"Error: A fatal exception has occurred. Program will exit.","position":{},"original":"Error: A fatal exception has occurred. Program will exit."}
AGPBI: {"kind":"SIMPLE","text":"Error: Could not create the Java Virtual Machine.","position":{},"original":"Error: Could not create the Java Virtual Machine."}
AGPBI: {"kind":"SIMPLE","text":"Error: A fatal exception has occurred. Program will exit.","position":{},"original":"Error: A fatal exception has occurred. Program will exit."}
AGPBI: {"kind":"SIMPLE","text":"Error: Could not create the Java Virtual Machine.","position":{},"original":"Error: Could not create the Java Virtual Machine."}
AGPBI: {"kind":"SIMPLE","text":"Error: A fatal exception has occurred. Program will exit.","position":{},"original":"Error: A fatal exception has occurred. Program will exit."}
AGPBI: {"kind":"SIMPLE","text":"Error: Could not create the Java Virtual Machine.","position":{},"original":"Error: Could not create the Java Virtual Machine."}
AGPBI: {"kind":"SIMPLE","text":"Error: A fatal exception has occurred. Program will exit.","position":{},"original":"Error: A fatal exception has occurred. Program will exit."}
FAILED
FAILURE: Build failed with an exception.
AGPBI: {"kind":"SIMPLE","text":"Error: Could not create the Java Virtual Machine.","position":{},"original":"Error: Could not create the Java Virtual Machine."}
AGPBI: {"kind":"SIMPLE","text":"Error: A fatal exception has occurred. Program will exit.","position":{},"original":"Error: A fatal exception has occurred. Program will exit."}
AGPBI: {"kind":"SIMPLE","text":"Error: Could not create the Java Virtual Machine.","position":{},"original":"Error: Could not create the Java Virtual Machine."}
AGPBI: {"kind":"SIMPLE","text":"Error: A fatal exception has occurred. Program will exit.","position":{},"original":"Error: A fatal exception has occurred. Program will exit."}
AGPBI: {"kind":"SIMPLE","text":"Error: Could not create the Java Virtual Machine.","position":{},"original":"Error: Could not create the Java Virtual Machine."}
AGPBI: {"kind":"SIMPLE","text":"Error: A fatal exception has occurred. Program will exit.","position":{},"original":"Error: A fatal exception has occurred. Program will exit."}
AGPBI: {"kind":"SIMPLE","text":"Error: Could not create the Java Virtual Machine.","position":{},"original":"Error: Could not create the Java Virtual Machine."}
AGPBI: {"kind":"SIMPLE","text":"Error: A fatal exception has occurred. Program will exit.","position":{},"original":"Error: A fatal exception has occurred. Program will exit."}
FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:preDexDebug'.com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_71\bin\java.exe'' finished with non-zero exit value 1
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
1 0
- android studio 真机运行的时候gradle 报错 AGPBI: {"kind":"SIMPLE","text":"Error: C
- Android Studio真机运行时报错
- AGPBI: {"kind":"error","text":"warning: Ignoring InnerClasses attribute for an anonymous inner class
- android studio 真机运行出现乱码
- android studio 真机运行中文乱码
- android studio build工程时报错agpbi{}
- 真机运行时报错
- Android studio gradle构建工程的时候很慢经常报错解决方案
- IOS真机运行带有Notification Content target的时候证书报错This application or a bundle it contains has the same bun
- android studio在真机运行中文乱码
- android studio 程序真机运行中文显示乱码
- android studio 程序真机运行中文显示乱码
- android studio 程序真机运行中文显示乱码
- android studio 程序真机运行中文显示乱码
- Mac android studio 环境搭建和真机运行
- Mac android studio 环境搭建和真机运行
- win7解决android studio真机运行找不到设备的问题
- Ubuntu环境下Android Studio编译5.1系统的APP可以真机运行,但是4.4的体统真机运行会闪退
- lockf()函数
- JAVA学习(10) 继承(3) 继承中的构造函数
- 通讯录
- 如何正确使用const,static,extern
- Python 基础学习7 - print line
- android studio 真机运行的时候gradle 报错 AGPBI: {"kind":"SIMPLE","text":"Error: C
- iOS9通讯录框架Contacts的简单使用
- 实例变量与成员变量的使用
- 链表——翻转
- namespaces - overview of Linux namespaces
- #pragma hdrstop
- OpenCV Kalman滤波器
- javascript 面向对象基础(二) 包装对象原型链
- java的学习之路
2 个回复
不良人 - http://www.bit100.com
JimCarter
1.在project structure中去掉重复的jar包,
2.如果你的jar包是放到了libs目录中,且在gradle中发现了如下代码:
compile fileTree(include: ['*.jar'], dir: 'libs')
则注释掉即可。
我是用第二种方法解决的,第一种太不好找了