Error:Conversion to Dalvik format failed with error 1 during Google+ integration
Error:Conversion to Dalvik format failed with error 1 during Google+ integration
我想在Eclipse4.4.1的androidApp中集成GooglePlus,引用site。但面临非常令人沮丧的错误
Conversion to Dalvik format failed with error 1
在控制台中
GooglePlus] Dx Uncaught translation error:
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError:
Java heap space
GooglePlus] Dx Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError:
Java heap space
GooglePlus] Dx 2 errors; aborting
GooglePlus] Conversion to Dalvik format failed with error 1
当我在我们的项目中添加 google-play-services_lib
作为库时
和库
MainActivity.java
private GoogleApiClient mGoogleApiClient;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this).addApi(Plus.API)
.addScope(new Scope(Scopes.PROFILE)).addScope(new Scope(Scopes.EMAIL)).build();
}
我尝试了很多来自 Whosebug 的 tick(比如清理项目、重建),但没有成功。
请指导我。
经过多次勾选和搜索,我得到了它的解决方案,它对我有用,希望未来的访客。
第 1 步: 转到 eclipse 设置文件夹并找到 eclipse(配置设置文件)命名文件。
第 2 步: 像这样编辑此文件:
你可以替换
-Xms40m
-Xmx512m
和
-Xms40m
-Xmx1024m
第 3 步: 保存并重新启动您的 eclipse。
它对我来说很好,希望对其他人也一样。
谢谢
我想在Eclipse4.4.1的androidApp中集成GooglePlus,引用site。但面临非常令人沮丧的错误
Conversion to Dalvik format failed with error 1
在控制台中
GooglePlus] Dx Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space GooglePlus] Dx Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space GooglePlus] Dx 2 errors; aborting GooglePlus] Conversion to Dalvik format failed with error 1
当我在我们的项目中添加 google-play-services_lib
作为库时
和库
MainActivity.java
private GoogleApiClient mGoogleApiClient;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this).addApi(Plus.API)
.addScope(new Scope(Scopes.PROFILE)).addScope(new Scope(Scopes.EMAIL)).build();
}
我尝试了很多来自 Whosebug 的 tick(比如清理项目、重建),但没有成功。
请指导我。
经过多次勾选和搜索,我得到了它的解决方案,它对我有用,希望未来的访客。
第 1 步: 转到 eclipse 设置文件夹并找到 eclipse(配置设置文件)命名文件。
第 2 步: 像这样编辑此文件:
你可以替换
-Xms40m
-Xmx512m
和
-Xms40m
-Xmx1024m
第 3 步: 保存并重新启动您的 eclipse。
它对我来说很好,希望对其他人也一样。
谢谢