我刚刚做了一个安卓的Hello Word应用。但是,我得到了这样的错误:
Error(3, 19) package android.app does not exist
Error(4, 18) package android.os does not exist
Error(6, 33) cannot find symbol
symbol: class Activity
Error(11, 26)cannot find symbol
symbol: class Bundle
Error(12, 9)cannot find symbol
symbol : variable super
Error(13, 9)cannot find symbol
symbol : method setContentView(int)
Error(10, 5)method does not override or implement a method from a supertype.
当我双击error时,im会得到如下信息:
package com.example.Hello;
import android.app.Activity;
import android.os.Bundle;
public class MyActivity extends Activity {
/**
* Called when the activity is first created.
*/
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
发布于 2014-07-10 15:20:18
我也有同样的问题。添加SDK时,I can fixed it from this thread,有时intelliJ缺少路径/文件
https://stackoverflow.com/questions/18913666
复制相似问题