1.
Error:Execution failed for task ':e_yeach:preDexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_80\bin\java.exe'' finished with non-zero exit value 1> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_80\bin\java.exe'' finished with non-zero exit value 2
+++++++++++++解决方法两步走起++++++++++++++++++
apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.1" //第一步:加这个配置 dexOptions { javaMaxHeapSize "1g" } compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } defaultConfig {//第二步:加下面这句话
multiDexEnabled true applicationId "com.yeah.yiye.e_yeach" minSdkVersion 14 targetSdkVersion 20 versionCode 1 versionName "1.0" } packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } productFlavors { }}dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.android.support:design:23.0.1' compile files('libs/BaiduLBS_Android.jar') compile files('libs/fastjson-1.1.45.android.jar') compile files('libs/httpmime-4.1.2.jar') compile files('libs/IndoorscapeAlbumPlugin.jar') compile files('libs/situ_android_4.jar') compile files('libs/universal-image-loader-1.9.4-with-sources.jar') compile files('libs/situ-mysql-helper-windows2.9.jar') compile files('libs/android-support-v7-recyclerview.jar') compile files('libs/android-v7-cardview.jar') compile project(':myHtmlParser')}