将Android工作室更新为2.2后,我无法生成APK。它在更新android studio之前工作。我被困在最近2天。我将4个项目用作库<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawerLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<RelativeLayout
android:layout_width="280dp"
android:layout_height="match_parent"
android:id="@+id/drawerPane"
android:layout_gravity="start">
<RelativeLayout
android:id="@+id/logoBox"
android:layout_width="match_parent"
android:layout_height="100dp"
android:background="@color/material_blue_grey_800"
android:padding="8dp" >
<ImageView
android:id="@+id/g4aLogo"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginTop="15dp"
android:layout_centerInParent="true"/>
</RelativeLayout>
<ListView
android:id="@+id/settingsList"
android:layout_width="280dp"
android:layout_height="match_parent"
android:layout_below="@+id/logoBox"
android:choiceMode="singleChoice"
android:background="#ffffffff" />
</RelativeLayout>
</android.support.v4.widget.DrawerLayout>
circleindicator
:ffmpeg4android_lib
libraryCalender
。请指导我怎么解决?
错误信息是:
libraryGridView
我的gradle文件为:
Information:Gradle tasks
[:app:generateDebugSources,
:app:generateDebugAndroidTestSources,
:app:mockableAndroidJar,
:app:prepareDebugUnitTestDependencies,
:circleindicator:generateDebugSources,
:circleindicator:generateDebugAndroidTestSources,
:circleindicator:mockableAndroidJar,
:circleindicator:prepareDebugUnitTestDependencies,
:ffmpeg4android_lib:generateDebugSources,
:ffmpeg4android_lib:generateDebugAndroidTestSources,
:ffmpeg4android_lib:mockableAndroidJar,
:ffmpeg4android_lib:prepareDebugUnitTestDependencies,
:libraryCalender:generateDebugSources,
:libraryCalender:mockableAndroidJar,
:libraryCalender:prepareDebugUnitTestDependencies,
:libraryCalender:generateDebugAndroidTestSources,
:libraryGridView:generateDebugSources,
:libraryGridView:mockableAndroidJar,
:libraryGridView:prepareDebugUnitTestDependencies,
:libraryGridView:generateDebugAndroidTestSources]
build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.toodapp.socialmedia"
minSdkVersion 15
targetSdkVersion 19
versionCode 6
versionName "1.0.4"
ndk {
abiFilter "armeabi-v7a"
//abiFilter "x86"
}
javaCompileOptions {
annotationProcessorOptions {
className 'com.example.MyProcessor'
// Arguments are optional.
arguments = [foo: 'bar']
}
}
}
signingConfigs {
config {
v2SigningEnabled false
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
productFlavors {
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-annotations:22.2.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:recyclerview-v7:+'
compile 'com.android.support:cardview-v7:23.0.+'
compile 'com.github.rtoshiro.fullscreenvideoview:fullscreenvideoview:1.1.0'
compile 'com.squareup.picasso:picasso:2.4.0'
compile project(':libraryCalender')
compile 'org.apache.httpcomponents:httpmime:4.2.3'
compile files('libs/universal-image-loader-1.9.5.jar')
compile files('libs/gcm.jar')
compile project(':libraryGridView')
compile project(':ffmpeg4android_lib')
}
和gradle-wrapper.properties
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
//classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.android.tools.build:gradle:2.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}