久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Android - 使用 Dex 轉(zhuǎn)換類進(jìn)行調(diào)試

Android - transform Classes With Dex For Debug(Android - 使用 Dex 轉(zhuǎn)換類進(jìn)行調(diào)試)
本文介紹了Android - 使用 Dex 轉(zhuǎn)換類進(jìn)行調(diào)試的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

在我添加 Facebook 依賴項(xiàng)之前,我的項(xiàng)目運(yùn)行良好.我已經(jīng)開始收到此錯(cuò)誤.我讀過(guò)很多問(wèn)題,問(wèn)題似乎與 MultiDex 有關(guān).但是沒(méi)有一個(gè)解決方案對(duì)我有用

My project was working fine until I added the Facebook dependency. I've started getting this error. I've read many question, the problem seems to be related to MultiDex. But none of the solutions worked for me

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: 
com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException: Process 'command 
'/usr/lib/jvm/java-7-openjdk-amd64/bin/java'' finished with non-zero exit value 1

即使我刪除了我添加的內(nèi)容,它仍然顯示,而且 gradle 在構(gòu)建時(shí)似乎比平時(shí)花費(fèi)了很多時(shí)間

Even after I remove what I've added, it still show and also gradle seems to be taking a lot of time while building than usual

這是我的 build.gradle

Here is my build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

defaultConfig {
    applicationId "net.ciblo.spectrodraft"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    multiDexEnabled true

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'

repositories {
    mavenCentral()
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }

}
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.support:cardview-v7:23.2.1'
compile 'com.android.support:design:23.2.1'
compile 'com.daimajia.easing:library:1.0.1@aar'
compile 'com.daimajia.androidanimations:library:1.1.3@aar'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'com.pnikosis:materialish-progress:1.5'
compile 'com.nineoldandroids:library:2.4.+'
compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
compile 'com.android.support:support-v4:23.2.1'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'

}

推薦答案

將以下代碼添加到 build.gradle app 模塊解決了我的問(wèn)題

Adding the following code to build.gradle app module solved my problem

android{
    defaultConfig {

        // Enabling multidex support.
        multiDexEnabled true
    }


    dexOptions {
        javaMaxHeapSize "4g"
    }
}
dependencies {
    //...
    compile 'com.android.support:multidex:1.0.0'
}

這篇關(guān)于Android - 使用 Dex 轉(zhuǎn)換類進(jìn)行調(diào)試的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現(xiàn) IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當(dāng)前風(fēng)味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復(fù)“意外元素lt;查詢gt;在“清單中找到錯(cuò)誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風(fēng)味庫(kù)的多風(fēng)味應(yīng)用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運(yùn)行時(shí)有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫(kù)的傳遞依賴)
主站蜘蛛池模板: 欧美a级成人淫片免费看 | www.精品一区 | 欧美日韩在线观看一区二区三区 | 九九看片 | 一区视频在线 | 国产精品中文字幕在线播放 | 国产精品一区二区欧美黑人喷潮水 | 久久精品女人天堂av | 天天艹| 中文在线亚洲 | 丝袜美腿一区二区三区 | 久草免费在线视频 | 亚洲欧美日本在线 | 国产免费观看一区 | 国产精品theporn | 久久99蜜桃综合影院免费观看 | 国产女人叫床高潮大片免费 | 日韩精品一区二区不卡 | 精品国产乱码久久久久久久久 | 在线视频一区二区 | 久草在线在线精品观看 | 91av免费看| 99tv成人影院 | 国产精品特级毛片一区二区三区 | 99这里只有精品 | 综合婷婷 | 九九视频在线观看视频6 | 亚洲福利av | 91免费版在线 | 国产免费播放视频 | 一区二区三区中文字幕 | 在线观看 亚洲 | 久久精品美女 | 91豆花视频 | 亚洲av一级毛片 | 久久99久久99久久 | 成人av一区二区三区 | 国产成人精品免费视频 | 国产精品国产三级国产aⅴ中文 | 一区二区中文字幕 | 日韩国产欧美 |