gpt4 book ai didi

android - 应用程序的类文件未打包到 APK 中

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:39:41 26 4
gpt4 key购买 nike

Android 打包程序(不再)以某种方式在 APK 中包含来 self 的应用程序的类文件。

从将我的设置与示例项目进行比较到重新安装 Eclipse,我已经尝试了所有想到的方法。但是,当我打包应用程序时,无论是通过“导出(未)签名的应用程序包”还是仅通过在调试设备/模拟器上运行它,所有内容都包括在内(jar 库、android 库项目(例如 ActionBarSherlock))除了我自己的代码。 :-(

这是仍然会产生问题的最小配置...感谢任何提示或帮助!

Android list :

    <?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 构建它...接受 Robert 的回答,因为他是最接近的。

最佳答案

您如何最有可能遇到构建错误,并且该过程无法完成其工作。

关于android - 应用程序的类文件未打包到 APK 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13498961/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com