Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse 未链接到最终APK的资源_Eclipse_Proguard_Android Resources_Apk - Fatal编程技术网

Eclipse 未链接到最终APK的资源

Eclipse 未链接到最终APK的资源,eclipse,proguard,android-resources,apk,Eclipse,Proguard,Android Resources,Apk,我可以在emulator中很好地运行我的应用程序,并使用相同的源代码编译最终APK,但在另一台复制了完全相同环境(Android SDK、Eclipse和源代码!)的计算机上,在创建分发包时,项目的资源不会编译到最终APK中。 因此,分布APK的大小只有122k,而正确的大小应该是290k左右。尝试在设备上安装时,它显示为“无效” 知道为什么吗?我使用的是原始的proguard文件还是空文件没有区别。我指的是以点开始的文件.project。它应该看起来像这样 <?xml version="

我可以在emulator中很好地运行我的应用程序,并使用相同的源代码编译最终APK,但在另一台复制了完全相同环境(Android SDK、Eclipse和源代码!)的计算机上,在创建分发包时,项目的资源不会编译到最终APK中。 因此,分布APK的大小只有122k,而正确的大小应该是290k左右。尝试在设备上安装时,它显示为“无效”


知道为什么吗?我使用的是原始的proguard文件还是空文件没有区别。

我指的是以点开始的文件
.project
。它应该看起来像这样

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>MiniCallWidget</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>

迷你小部件
com.android.ide.eclipse.adt.ResourceManagerBuilder
com.android.ide.eclipse.adt.PreCompilerBuilder
org.eclipse.jdt.core.javabuilder
com.android.ide.eclipse.adt.ApkBuilder
com.android.ide.eclipse.adt.AndroidNature
org.eclipse.jdt.core.javanature

检查
.project
文件和ADT安装我的ADT安装是Google提供的“原始”捆绑包。project文件激活了这一行:“target=Google Inc.:Google API:15”--并且Google API 15是与Android SDK安装一起安装的。。关于这里可能发生的事情还有其他线索吗?是的,看起来是这样的。。。o、 o但它一定与项目的设置有关,因为ADT/Eclipse安装是Google提供的原始安装。在final.APK中,缺少子目录“res”、AndroidManifest.xml和resources.arsc。