<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.test"
android:versionCode="1"
android:versionName="1.0" > <uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="17" /> <application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.test.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application></manifest>
//代码一行未写,创建出来就运行,结果空白。界面
eclipse3.7+ADT, API4.2,直接从网上下的一个java-ADT,Android IDE,创建项目就是不出字来。
//下面是开发工具版本
Android Developer Tools
Build: v21.0.0-531062This product includes Eclipse Platform, JDT, CDT, EMF, GEF and WTP,
all of which are Copyright (c) Eclipse contributors and others.
Visit http://eclipse.org/Android Developer Tools are Copyright (c) The Android Open Source Project.
Visit http://developer.android.com //end 开发工具版本一个是hello,又建了个test项目,一样的运行效果。
public class MainActivity extends Activity { @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
} @Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}
跪求高手指点。。不胜感激
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.test"
android:versionCode="1"
android:versionName="1.0" > <uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="17" /> <application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.test.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application></manifest>
//代码一行未写,创建出来就运行,结果空白。界面
eclipse3.7+ADT, API4.2,直接从网上下的一个java-ADT,Android IDE,创建项目就是不出字来。
//下面是开发工具版本
Android Developer Tools
Build: v21.0.0-531062This product includes Eclipse Platform, JDT, CDT, EMF, GEF and WTP,
all of which are Copyright (c) Eclipse contributors and others.
Visit http://eclipse.org/Android Developer Tools are Copyright (c) The Android Open Source Project.
Visit http://developer.android.com //end 开发工具版本一个是hello,又建了个test项目,一样的运行效果。
public class MainActivity extends Activity { @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
} @Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}
跪求高手指点。。不胜感激
解决方案 »
- 谁写过马士兵的坦克大战?请进
- 难道硕大的CSDN社区java大阪就没有用过java内容仓库的吗??
- java 中Graphics 颜色设置问题
- 招聘java开发工程师
- java有没有什么类可以构建HTTP头结构然后发送到目的地?
- 关于JInternalFrame的问题
- JAVA界面编程问题请教~急
- 请教一个关于得到一个时间段内,按星期排列的日期的算法,请近来看看哦
- 关于swing JButton的icon不显示的问题
- BufferedReader 无法定义是怎么回事,哪位大神帮忙看一下
- java table问题,右键监听的实现,望大神帮帮忙。
- 为何用了那么多年Java,仍然有很多Java语言相关细节不清楚呢?
2.你是否真的运行那个项目了?我看你应该是刚刚接触Android 的,可以找一下课本的例子参考着把它运行出来。这个不是什么难题来的。多看书,多动手。
我刚开始学android的时候也是这样,以为是错了。