java - 安卓的问题

标签 java android netbeans-7 netbeans7.0

我正在使用 netbeans 7 并且正在运行此代码

package com.helloworld;

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

public class MainActivity extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

我收到错误

Creating output directories if needed...
Compiling aidl files into Java classes...
Compiling RenderScript files into Java classes and RenderScript bytecode...
Generating R.java / Manifest.java from the resources...
compile:
G:\android-sdk\tools\ant\main_rules.xml:384: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
Compiling 1 source file to D:\java programs\Android\HelloWorld\bin\classes
Converting compiled files and external libraries into D:\java programs\Android\HelloWorld\bin\classes.dex...
=D:\java was unexpected at this time.
G:\android-sdk\tools\ant\main_rules.xml:486: The following error occurred while executing this line:
G:\android-sdk\tools\ant\main_rules.xml:203: apply returned: 255
BUILD FAILED (total time: 1 second)

最佳答案

可能是由于任何路径中存在空格

在这里寻找相同的 Error with NetBeans Android plugin

关于java - 安卓的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7139301/

相关文章:

java - 根据发送的字节数更新进度条

java - 获取文本文件中的每 n 行哪个更有效?使用 Java 的 BufferedReader 进行迭代,或者拆分成子文件然后获取每个子文件的顶行?

android - 如何在 Android 中滚动 LinearLayout 与 ListView 联合

java - 处理列表中对象的属性?

java - 调用MySql数据库时出现空指针异常

php - Netbeans 配色方案

java - 如何在GUI中打印 'external'递归函数的答案?

android - 在 android :name value 中使用 $ 符号

java - 我想在单击 X(关闭按钮)时关闭框架

java - 多线程 FTP 输入流的输出不一致