どういうわけか、Android パッケージャーは (もう) 私のアプリケーションのクラス ファイルを APK に含めません。
設定をサンプル プロジェクトと比較することから、Eclipse を再インストールすることまで、頭に浮かんだすべてを試しました。ただし、「(署名されていない) アプリケーション パッケージのエクスポート」を介して、またはデバッグ デバイス/エミュレーターで実行するだけで、アプリをパッケージ化すると、自分以外のすべてが含まれます (jar ライブラリ、Android ライブラリ プロジェクト (ActionBarSherlock など))。コード。:-(
これは、まだ問題を引き起こす最小構成です...ヒントや助けをありがとう!
Android マニフェスト:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.kawak.bla.android"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".activity.MainActivity"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
クラスパス:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="lib" path="libs/json-simple-1.1.1.jar"/>
<classpathentry kind="lib" path="libs/zbar.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/SherlockActionBar"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
Eclipse プロジェクト構成:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>bla-android</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
更新: 実際、私の問題は、ActionBarSherlock が Android 4.2 に対してビルドされていたため、まともなエラー メッセージが表示されずにすべてが台無しになってしまったことです。幸いなことに、4.0 に対してビルドする必要があることがFAQ に記載されています。