试图加载从日食Android 1.6的虚拟设备时出错 [英] Error when trying to load Android 1.6 virtual device from eclipse

查看:104
本文介绍了试图加载从日食Android 1.6的虚拟设备时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我扶着自新秀的Java

和我孤陋寡闻(如莎士比亚的岂)收到以下错误消息回试图启动了Android 1.6 VM(我使用的是Android 1.6,而不是更高版本的原因是,它需要较少的时间来加载,当我的从Eclipse的PC慢):

  VM的初始化过程中出现错误
爪哇/郎/ NoClassDefFoundError的:爪哇/郎/ REF / FinalReference

我已经成功地开始了Android 1.6的虚拟机从AVD管理器,以便在VM软件似乎O.K。

和源$ C ​​$ C似乎o.k - 并且是默认code应该初始化VM:

 包com.leigh.namespace;进口android.app.Activity;
进口android.os.Bundle;公共类HelloWorldActivity延伸活动{
    @覆盖
    公共无效的onCreate(捆绑savedInstanceState){
        super.onCreate(savedInstanceState);
        的setContentView(R.layout.main);
    }
}

任何帮助将是AP preciated。


解决方案

  

但你的信息我已经安装JDK1.7.0_03编译


Android的工具,如模拟器,依赖于JDK 6(1.6.x版)安装。他们不会有JDK 7的安装(1.7.x)正常运行。 安装JDK 6 代替,然后再试一次。

I am self leaning Java rookie

and I doth (as in Shakespeare 'Doth')received the following error message back when trying to start the Android 1.6 VM( The reason I am using Android 1.6 and not later versions is that it takes less time to load on my slow P.C!) from Eclipse:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/ref/FinalReference

I have successfully started Android 1.6 VM from the AVD manager so the VM software appears to be O.K.

and the source code appears to be o.k - and is the default code that should initialize the VM:

package com.leigh.namespace;

import android.app.Activity;
import android.os.Bundle;

public class HelloWorldActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

Any Help would would be appreciated.

解决方案

But for you information I have JDK1.7.0_03 compiler installed

The android tools, such as the emulator, depend on a JDK 6 (1.6.x) installation. They won't run properly with a JDK 7 installation (1.7.x). Install JDK 6 instead and try again.

这篇关于试图加载从日食Android 1.6的虚拟设备时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆