*Android/Android Error Memo [#j7f2a38e]

RIGHT:更新日&lastmod();

** Error1 [#wca39996]

以下のよいうなエラーのとき

 Project ‘ApiDemos’ is missing required source folder: ‘gen’
 The project cannot be built until build path errors are resolved

+プロジェクトメニューの「自動ビルド」が有効の場合はチェックを外す
+「gen」フォルダを削除
+「クリーン」を選択して該当プロジェクトをきれいにする
 このとき、クリーン後に再ビルドするというチェックが入っていれば外す(重要!)
+Eclipseをいったん閉じる(重要!)
+プロジェクトメニューの「自動ビルド」を有効にする
 手動でビルドすると何故か失敗する…

** Error2 [#ab5058b6]

以下のよいうなエラーのとき

 The method OnClick must override a superclass method

Propertise -> JavaCompiler で 1.6にする

** Error3 [#b4c038bb]

Androidのバージョン変更により以下のよいうなエラーのとき

 R cannot be resolved

「Project」メニュー、「Clean」を実行し、(自動)ビルドすると、R.javaファイルを再作成。~
「The type R is already defined」エラーの場合も、R.javaファイルを手動で削除すればOK。


** Warning 1 [#x5cb92f5]

以下のよいうなWARNINGのとき

 WARNING: Application does not specify an API level requirement!
 Device API version is 3 (Android 1.5)

''AndroidManifest.xml''に追加

 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
       package="com.example.android.dual"
       android:versionCode="1"
       android:versionName="1.0.0">
     <application android:icon="@drawable/icon" android:label="@string/app_name">
         <activity android:label="@string/app_name" android:name=".Main">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.LAUNCHER" />
             </intent-filter>
         </activity>
         <activity android:label="@string/app_name" android:name=".Editor"/>
     </application>
     <uses-sdk android:minSdkVersion="3" />    <==ここを追加
 </manifest>


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS