1 Failure [INSTALL_FAILED_OLDER_SDK]
app的applevel与你模拟器或者真机的android系统版本不兼容,也许你应用是基于2.0的sdk,而你模拟器是1.6的版本,这样就会出现这样的错误,把你应用的sdk level调低,例如 在mainfest的 中
2 在运行APK时候出现
the Application My_Apk has stopped unexpectedly. Please try again.
可能因为activity name 与 R.layout.()不符,红色字体名字要一样。
#:vi src/hello/com/main.java
package hello.com;
import android.app.Activity;
import android.os.Bundle;
public class main extends Activity {
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
#:vi AndroidManifest.xml
package="button.com">
Main" android:label="My_Apk">
3 错误提示:class A is public, should be declared in a file A.java
public 的类必须和文件名一致
阅读(1573) | 评论(0) | 转发(0) |