我在AIDE上创建了一个Android项目,运行ICS的我的android手机上,然后创建一个APK我复制项目文件夹到我的电脑,当我在Eclipse中打开它时,出现以下错误:AIDE和Eclipse项目错误
[2012-03-28 9时04分04秒 - ColorFinder]无法解析目标 '的Android-10'
我AndroidManifext.xml如下所示:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sikni8.colorfinder"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="11" />
<application
android:icon="@drawable/icon"
android:label="@string/app_name" >
<activity
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar"
android:label="@string/app_name"
android:name=".MainActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
我如何知道AIDE创建的最小和最大目标是什么? 在我的电脑中,我只安装了Android 4.0.3(API 15)。这是原因吗? 感谢
编辑: 我有一个按钮,几OnClickListener,但在编译过程中所有四个给我下面的错误:“类型OnClickListener不明确” 一个例子:
clearValButton.setOnClickListener(new OnClickListener() {
//@Override
public void onClick(View z) {
hMain.setEnabled(true);
rMain.setEnabled(true);
gMain.setEnabled(true);
bMain.setEnabled(true);
findViewById(R.id.dummyFocus).setFocusableInTouchMode(true);
findViewById(R.id.dummyFocus).requestFocus();
Toast.makeText(MainActivity.this, "All inputboxes are now Enabled.", Toast.LENGTH_SHORT).show();
}});
是的,这是sdk下载的问题。 – Blackbelt 2012-03-28 13:21:10
我重新下载了两次现在:( 除了onClickListener之外,所有东西都在工作......我提供了一个来自我的应用程序的例子,以及当我编译时出现的错误,任何想法黑带?谢谢 – Jay 2012-03-28 14:06:13
尝试'new View.OnClickListener )' – Thommy 2012-03-28 14:14:24