1
當我嘗試一起使用Picaso和OKHttp進入app/build.gradle時,這個問題就開始了。請幫我解決這個問題。提前致謝。是Android Studio的Multidex支持嗎?
當我嘗試一起使用Picaso和OKHttp進入app/build.gradle時,這個問題就開始了。請幫我解決這個問題。提前致謝。是Android Studio的Multidex支持嗎?
Multidex support for **Android 5.0 and higher**
Step 1 : add MultidexEnabled true in app/build.gradle
defaultConfig {
...
minSdkVersion 14
targetSdkVersion 21
// Enabling multidex support.
multiDexEnabled true
}
**Step 2 :**
dependencies {
compile 'com.android.support:multidex:1.0.0'
}
**Step 3:** in your manifest add the MultiDexApplication class from the multidex support library to the application element.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.multidex.myapplication">
<application
...
android:name="android.support.multidex.MultiDexApplication">
...
</application>
</manifest>
For More details about this please refer Google Developer site:
[Click Here][1]
I hope this help.
[1]: http://developer.android.com/intl/es/tools/building/multidex.html
您可以檢查這個問題http://stackoverflow.com/questions/26609734/how-to-enable-multidexing-with-the-new-android-multidex-support-library –