2016-05-16 23 views
0

有我的編譯時依賴的Android工作室multidexenable真正服用3分鐘來構建整個項目

compile 'com.android.support:design:23.2.1' 
compile 'com.android.support:cardview-v7:23.2.1' 
compile 'com.android.support:recyclerview-v7:23.2.1' 
compile 'com.android.support:appcompat-v7:23.2.1' 
compile 'com.journeyapps:zxing-android-embedded:[email protected]' 
compile 'com.google.zxing:core:3.2.0' 
compile 'uk.co.chrisjenx:calligraphy:2.1.0' 
compile 'com.android.support:support-v4:23.2.1' 
compile 'com.github.paolorotolo:appintro:3.4.0' 
compile "com.google.android.gms:play-services:8.4.0" 
compile "com.quantumgraph.sdk:QG:1.1.11" 
compile 'com.android.support:multidex:1.0.1' 

回答

1

這並不是一個非常長時間使用multidex項目。你可以加快速度的一種方法是隻包括你需要的谷歌播放服務的庫,因爲「com.google.android.gms:play-services:8.4.0」是一個巨大的庫。這個頁面展示如何做到這一點:

https://developers.google.com/android/guides/setup#add_google_play_services_to_your_project

請參閱「選擇性編譯API整合到你的可執行文件」。

事實上,根據其他庫的大小,您可能會發現只使用谷歌播放服務apis您需要您不再需要啓用multidex。

+0

是的!是!打破那些播放服務 – Shmuel

相關問題