我正在使用以下代码测试我的应用程序“Banner Example New”,它正在处理“Bluestacks模拟器”,但logcat显示网络错误。
logcat的:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
signingConfigs {
release {
}
}
configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
}
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
applicationId "com.mouthshut"
minSdkVersion 14
targetSdkVersion 23
multiDexEnabled true
useLibrary 'org.apache.http.legacy'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dexOptions {
incremental true
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile project(':comnostra13exampleuniversalimageloaderHomeActivity')
compile project(':nineoldandroid')
compile project(':libraryActionbar')
compile project(':pullToRefresh')
compile project(':facebook')
compile 'com.google.android.gms:play-services:+'
compile 'com.android.support:multidex:1.0.+'
compile files('libs/AF-Android-SDK-v2.3.1.19.jar')
compile files('libs/classes.jar')
compile files('libs/CleverTapAndroidSDK-v1-20150903.jar')
compile files('libs/YouTubeAndroidPlayerApi.jar')
//compile 'com.github.adrian110288:LoadIndicators:83ce610325'
compile project(':LoadIndicatorLibrary')
compile 'com.nispok:snackbar:2.11.+'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true;
}
compile 'com.android.support:appcompat-v7:23.3.0'
}