2014-10-30 36 views
1

我已经下载了android-support-v4.jar文件,以便在我的应用程序中使用android.support.v4.view.PagerAdapter。INSTALL_FAILED_DEXOPT添加android-support-v4后

我开发我的应用程序,我测试它在真正的Android设备上,它工作正常。

但每当我对Android的支持-V4添加到我的IDE和我尝试重建项目中,我得到以下警告: warning after rebuild project

还当我尝试运行它在真实的设备(或仿真器)我将得到以下错误: error after clicking un run button in IDE

注:正如我之前所说的添加android-support-v4我的应用程序工作正常。 注意:我使用的IDE是:13.1.3的IntelliJ注 :添加Android的支持-V4到我的项目:我把它添加到项目像这样: enter image description here

在我附加结束我的清单文件,也许是它的原因。

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
      package="com.example.BritishCouncilasfads" 
      android:installLocation="auto" 
      android:versionCode="1" 
      android:versionName="1.0"> 
    <uses-sdk android:minSdkVersion="10"/> 
    <application android:label="@string/app_name"> 
     <activity android:name=".MainActivity" 
        android:label="@string/app_name"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN"/> 
       <category android:name="android.intent.category.LAUNCHER"/> 
      </intent-filter> 
     </activity> 
     <activity android:name=".ListViewActivity"/> 
     <activity android:name=".SecondActivity"/> 
    </application> 
</manifest> 

请帮助我,我不知道该怎么办!! :(

+0

我有sume错误:(为SDK 21添加了appcompat libray之后012,2.3以上的Android SDK工作正常 – 2014-11-04 00:04:22

回答

0

我在2.3版本的设备上遇到了同样的错误,从支持v4库版本22.0切换到22.2。一旦问题出现在2.3上,并且在4.0+上不可重现,则是7MB .dex文件限制和没有65K的方法问题。

两个可靠的解决方案将摆脱一些大库或使用ProGuard。Proguard的几乎默认配置的伟大工程,为我减少DEX大小从7.5MB到3.5MB。

更多信息Error while installing application (INSTALL_FAILED_DEXOPT)