When I am trying to build project in Android Studio I get the following error:
Error:Execution failed for task ':hunter:packageDebug'.
> Unsupported manifest version: 1.
When I clean project then I can run it normally, but then I need to clean it again before next build. It is really disturbing. I thought that Gradle and Adnroid version bump will help, but it changed nothing.
app build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'io.fabric'
android {
compileSdkVersion 27
buildToolsVersion "27.0.1"
defaultConfig {
applicationId "com.gamekit.gkquiz"
minSdkVersion 17
targetSdkVersion 27
versionCode 15
versionName "1.2.4"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
signingConfigs {
config {
keyAlias 'gamekit-key'
keyPassword kspass
storePassword kspass
storeFile file('../gamekit-release-key.jks')
}
}
buildTypes {
release {
ext.betaDistributionReleaseNotesFilePath = "crashlytics_release_notes.txt"
ext.betaDistributionGroupAliases = "android-testers"
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
}
sourceSets {
String sharedTestDir = 'src/sharedTest/java'
test {
java.srcDir sharedTestDir
}
androidTest {
java.srcDir sharedTestDir
}
}
packagingOptions {
pickFirst 'META-INF/*'
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
implementation project(':common')
kapt libs.activitystarter_kapt
implementation libs.paper_parcel
kapt libs.paper_parcel_kapt
compile ('com.github.kwizzad:kwizzad-android:2.0.2') {
exclude group:"com.android.support"
exclude group:"com.google.android.gms"
}
androidTestImplementation(libs.espresso_core, {
exclude group: 'com.android.support', module: 'support-annotations'
})
androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'design'
exclude group: 'com.android.support', module: 'recyclerview-v7'
}
testImplementation libs.junit
}
common build.gradle
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.23.0'
}
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 27
buildToolsVersion '27.0.1'
defaultConfig {
minSdkVersion 17
targetSdkVersion 27
versionCode 1
versionName "1.0"
multiDexEnabled true
}
lintOptions {
abortOnError false
}
}
kapt {
generateStubs = true
}
dependencies {
implementation fileTree(dir: 'lib', include: '*.jar')
api libs.kotlin
api libs.android_support
api libs.retrofit
api libs.rx
api libs.glide
implementation libs.facebook_ads
api('com.crashlytics.sdk.android:crashlytics:2.6.8#aar') {
transitive = true
}
api 'com.github.MarcinMoskala:KotlinAndroidViewBindings:0.10'
api libs.preference_holder
api libs.activitystarter
api group: 'joda-time', name: 'joda-time', version: '2.9.9'
api group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
implementation 'com.facebook.android:facebook-android-sdk:4.25.0'
implementation 'com.vk:androidsdk:1.6.8'
implementation 'com.google.firebase:firebase-ads:11.2.0'
implementation 'com.google.firebase:firebase-auth:11.2.0'
implementation 'com.google.android.gms:play-services-auth:11.2.0'
api 'com.github.marcinmoskala:ArcSeekBar:0.34'
implementation libs.multidex
androidTestImplementation(libs.espresso_core, {
exclude group: 'com.android.support', module: 'support-annotations'
})
testImplementation libs.junit
}
Project build.gradle
buildscript {
ext.kotlin_version = '1.2.0-rc-39'
ext.retrofit_version = '2.3.0'
ext.okhttp_version = '3.6.0'
ext.android_version = '27.0.1'
ext.activity_starter_version = '1.00'
ext.preference_holder_version = '1.51'
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven { url 'http://dl.bintray.com/kotlin/kotlin-eap-1.2' }
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url 'https://maven.google.com' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0-alpha04'
classpath 'com.google.gms:google-services:3.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'io.fabric.tools:gradle:1.23.0'
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'https://maven.google.com' }
maven { url 'https://maven.fabric.io/public' }
maven { url "http://dl.bintray.com/kotlin/kotlin-eap-1.2" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext.libs = [
minions : 'com.github.marcinmoskala:minions:0.082',
preference_holder : ["com.marcinmoskala.PreferenceHolder:preferenceholder:$preference_holder_version",
"com.marcinmoskala.PreferenceHolder:preferenceholder-gson-serializer:$preference_holder_version",],
kotlin : "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
android_support : ["com.android.support:support-v4:$android_version",
"com.android.support:appcompat-v7:$android_version",
"com.android.support:cardview-v7:$android_version",
"com.android.support:recyclerview-v7:$android_version",
"com.android.support:design:$android_version"],
retrofit : ["com.squareup.retrofit2:retrofit:$retrofit_version",
"com.squareup.retrofit2:adapter-rxjava2:$retrofit_version",
"com.squareup.retrofit2:converter-gson:$retrofit_version",
"com.squareup.retrofit2:converter-scalars:$retrofit_version",
"com.squareup.okhttp3:okhttp:$okhttp_version",
"com.squareup.okhttp3:logging-interceptor:$okhttp_version"],
facebook_ads : 'com.facebook.android:audience-network-sdk:4.22.1',
rx : ['io.reactivex.rxjava2:rxjava:2.0.9',
'io.reactivex.rxjava2:rxandroid:2.0.1'],
activitystarter : ["com.marcinmoskala.activitystarter:activitystarter:$activity_starter_version",
"com.marcinmoskala.activitystarter:activitystarter-kotlin:$activity_starter_version"],
activitystarter_kapt: "com.marcinmoskala.activitystarter:activitystarter-compiler:$activity_starter_version",
joda_time : ['joda-time:joda-time:2.9.3',
'com.fatboyindustrial.gson-jodatime-serialisers:gson-jodatime-serialisers:1.2.0'],
event_bus : 'de.greenrobot:eventbus:2.4.0',
crashlytics : 'com.crashlytics.sdk.android:crashlytics:2.5.0#aar',
material_dialog : 'com.afollestad.material-dialogs:core:0.9.0.1',
glide : 'com.github.bumptech.glide:glide:3.7.0',
paper_parcel : ['com.github.grandstaish.paperparcel:paperparcel:1.0.0',
'com.github.grandstaish.paperparcel:paperparcel-kotlin:1.0.0'],
paper_parcel_kapt : 'com.github.grandstaish.paperparcel:compiler:1.0.0',
multidex : 'com.android.support:multidex:1.0.2',
junit : 'junit:junit:4.12',
espresso_core : 'com.android.support.test.espresso:espresso-core:2.2.2',
mockito : 'org.mockito:mockito-core:1.10.19'
]
Have you tried downgrading gradle i.e changing
'com.android.tools.build:gradle:3.1.0-alpha04'
to
'com.android.tools.build:gradle:3.0.0'
Related
I want to use some Google Play services and some extra libraries in the same project. My app/build.gradle file looks like this:
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "bahir.com.myapplication"
minSdkVersion 19
targetSdkVersion 27
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
// !!! problematic code !!!
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.google.firebase:firebase-messaging:17.0.0'
implementation 'com.google.android.gms:play-services-auth:15.0.1'
implementation 'com.google.firebase:firebase-core:16.0.0'
compile 'com.github.myinnos:AlphabetIndex-Fast-Scroll-RecyclerView:1.0.92'
}
apply plugin: 'com.google.gms.google-services'
And my root/build.gradle file looks like this:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:3.3.0'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
If I delete all 3 Google Play Service libs- it's runing good, or I have to delete this code:
// !!! problematic code !!!
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
and of course:
compile 'com.github.myinnos:AlphabetIndex-Fast-Scroll-RecyclerView:1.0.92'
to have a successfully build, I suppose the conflict is into problematic code in app/build.gradle, so is there a way to declare repositories for a single lirary, in my case for compile 'com.github.myinnos:AlphabetIndex-Fast-Scroll-RecyclerView:1.0.92' ???
Use the new plugin:
classpath 'com.google.gms:google-services:4.0.1'
AlphabetIndex-Fast-Scroll-RecyclerView using internally '25.3.1' you can exclude
compile("com.github.myinnos:AlphabetIndex-Fast-Scroll-RecyclerView:1.0.92") {
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'com.android.support', module: 'design'
}
I have taken code from Realm objectServerExample.
SyncCredentials creds = SyncCredentials.usernamePassword(username, password, createUser);
SyncUser.Callback<SyncUser> callback = new SyncUser.Callback<SyncUser>() {
#Override
public void onSuccess(#Nonnull SyncUser user) {
progressDialog.dismiss();
onLoginSuccess();
}
#Override
public void onError(#Nonnull ObjectServerError error) {
progressDialog.dismiss();
String errorMsg;
switch (error.getErrorCode()) {
case UNKNOWN_ACCOUNT:
errorMsg = "Account does not exists.";
break;
case INVALID_CREDENTIALS:
errorMsg = "User name and password does not match";
break;
default:
errorMsg = error.toString();
}
onLoginFailed(errorMsg);
}
};
It says Cannot resolve symbol SyncCredentials
io.realm.Realm class is working.
My project level gradle file
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath "io.realm:realm-gradle-plugin:3.7.2"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'
classpath 'me.tatarka:gradle-retrolambda:3.7.0'
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Gradle (module:app)
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
apply plugin: 'com.jakewharton.butterknife'
apply plugin: 'me.tatarka.retrolambda'
android {
compileSdkVersion 26
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.amit.database"
minSdkVersion 22
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// jackOptions {
// enabled true
// }
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
compile "android.arch.lifecycle:runtime:1.0.0-alpha9"
compile "android.arch.lifecycle:extensions:1.0.0-alpha9"
annotationProcessor "android.arch.lifecycle:compiler:1.0.0-alpha9"
compile group: 'com.google.guava', name: 'guava', version: '22.0-android' // or 22.0-android for the Android flavor
compile 'com.android.support:design:25.3.1'
}
Main goal is to connect Android app with realm object server on aws-ec2. It is working and can be accessed from browser.
Add
realm {
syncEnabled = true
}
in gradle (module:app) to use realm sync feature
So final Gradle (module:app)
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
apply plugin: 'com.jakewharton.butterknife'
apply plugin: 'me.tatarka.retrolambda'
android {
compileSdkVersion 26
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.amit.database"
minSdkVersion 22
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// jackOptions {
// enabled true
// }
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
}
realm {
syncEnabled = true
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
compile "android.arch.lifecycle:runtime:1.0.0-alpha9"
compile "android.arch.lifecycle:extensions:1.0.0-alpha9"
annotationProcessor "android.arch.lifecycle:compiler:1.0.0-alpha9"
compile group: 'com.google.guava', name: 'guava', version: '22.0-android' // or 22.0-android for the Android flavor
compile 'com.android.support:design:25.3.1'
}
This is my build.gradle(app)
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 {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.my.app"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled = true
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
}
}
ant.importBuild 'assets.xml'
preBuild.dependsOn(list, checksum)
clean.dependsOn(clean_assets)
def dagger_version = "2.10"
def retrofit2_version = "2.2.0"
def support_package_version = "26.0.0-alpha1"
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
//dagger
compile "com.google.dagger:dagger:${dagger_version}"
annotationProcessor "com.google.dagger:dagger-compiler:${dagger_version}"
//retrofit2
compile "com.squareup.retrofit2:retrofit:${retrofit2_version}"
compile "com.squareup.retrofit2:converter-jackson:${retrofit2_version}"
//okhttp3
//support packages
compile "com.android.support:appcompat-v7:${support_package_version}"
compile "com.android.support:cardview-v7:${support_package_version}"
compile "com.android.support:design:${support_package_version}"
compile project(':pocketsphinx-android-5prealpha-release')
compile 'pl.bclogic:pulsator4droid:1.0.3'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
compile 'com.android.support:support-annotations:25.3.1'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.10.19'
androidTestCompile 'com.android.support.test.espresso:espresso-core:3.0.0'
androidTestCompile 'com.android.support.test:runner:1.0.0'
compile('com.crashlytics.sdk.android:crashlytics:2.6.8#aar') {
transitive = true;
}
}
I have noted the controversial dependencies from here
And I get the following errors
Failed to resolve:com.android.support.test.espresso:espresso-core:3.0.0
Failed to resolve:com.android.support.test:runner:1.0.0
I have updated the sdk manager, but still facing this. Do I have to downgrade to a lower version?
Can anyone help?
I had the same problem when I wanted to try Espresso.
I've resolved it by adding
maven {
url "https://maven.google.com"
}
to
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
in the project's build.gradle file. See https://developer.android.com/topic/libraries/testing-support-library/packages.html#gradle-dependencies.
I am using aspectj with maven and i am getting this error :
Error:Execution failed for task ':app:compileDebugAspectJ'.
build config error: bad sourceroot: /Users/yosomite/Desktop/Workspace/AndroidWorkspace/HomeDecore/app/src/debug/java
My Gradle is :
buildscript {
repositories {
mavenCentral()
maven() {
name 'RoboBinding AspectJPlugin Maven Repository'
url "https://github.com/RoboBinding/RoboBinding-aspectj-plugin/raw/master/mavenRepo"
//url "file://D:/git/RoboBinding-aspectj-plugin/mavenRepo"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.+'
classpath 'org.robobinding:aspectj-plugin:0.8.4'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'org.robobinding.android-aspectj'
android {
compileSdkVersion 22
buildToolsVersion "22.0.0"
defaultConfig {
minSdkVersion 14
targetSdkVersion 22
multiDexEnabled = false
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
//testInstrumentationRunner "android.test.InstrumentationTestRunner"
testApplicationId 'org.robobinding.gallerytest'
testHandleProfiling true
testFunctionalTest true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
buildTypes {
release {
minifyEnabled false
proguardFiles 'proguard-rules.pro'
}
}
lintOptions {
disable 'UnusedAttribute', 'ValidFragment', 'GradleDependency', 'OnClick', 'MissingPrefix', 'MenuTitle'
abortOnError false
}
packagingOptions {
exclude 'LICENSE.txt'
}
}
repositories {
mavenCentral()
maven() {
name 'SonaType snapshot repository'
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven() {
name 'RoboBinding Framework Maven Repository'
url "file://D:/git/RoboBinding/framework/mavenRepo"
}
maven() {
name 'RoboBinding CodeGen Maven Repository'
url "file://D:/git/RoboBinding/codegen/mavenRepo"
}
}
ext {
robobindingVersion = 'latest.integration'
//robobindingVersion = '0.8.8'
}
dependencies {
//compile fileTree(dir: 'libs', include: '*.jar')
compile ("org.robobinding:robobinding:${robobindingVersion}:with-aop") {
exclude group: 'com.google.guava'
}
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:cardview-v7:22.0.0'
compile 'com.android.support:recyclerview-v7:22.0.0'
compile 'com.google.guava:guava:16.0'
compile 'com.github.gabrielemariotti.cards:cardslib-core:2.0.1'
compile 'com.github.kikoso:SwipeableCards:1.1-RELEASE#aar'
compile 'com.lorentzos.swipecards:library:1.0.8#aar'
compile 'com.wunderlist:sliding-layer:1.1.1'
compile files('libs/ksoap2-android-assembly-2.6.5-jar-with-dependencies.jar')
compile files('libs/slider.jar')
compile 'io.reactivex:rxandroid:0.25.0'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.orhanobut:dialogplus:1.10#aar'
//aspectPath fileTree(dir: 'libs', include: '*.jar')
aspectPath "org.robobinding:robobinding:${robobindingVersion}:with-aop"
apt "org.robobinding:codegen:$robobindingVersion"
androidTestCompile('com.jakewharton.espresso:espresso-support-v4:1.1-r3') {
exclude group:'com.android.support', module:'support-v4'
exclude group:'com.android.support', module:'appcompat-v7'
exclude group: 'com.google.guava'
}
dependencies {
repositories {
mavenCentral()
}
compile 'com.sothree.slidinguppanel:library:3.0.0'
}
}
The cradle syncs without any error but it throws error while running the app. Anyone with possible solutions?
I already tried the solution (Using ViewPagerIndicator library with Android Studio and Gradle) but not successful. Still got this error message
Error:A problem occurred configuring project ':app'.
> Artifact 'library.aar (com.viewpagerindicator:library:2.4.1)' not found.
Searched in the following locations:
https://repo1.maven.org/maven2/com/viewpagerindicator/library/2.4.1/library-2.4.1.aar
What I trying to do is install this plugin (https://github.com/JakeWharton/ViewPagerIndicator) via gradle. Below is my build.gradle.
apply plugin: 'com.android.application'
repositories {
maven { url "http://dl.bintray.com/populov/maven" }
mavenCentral()
maven { url 'http://download.crashlytics.com/maven' }
}
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.xxxxx.xxxxx"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.viewpagerindicator:library:2.4.1#aar'
}
Add:
repositories {
maven {
url "https://jitpack.io"
}
}
before mavenCentral()
And to dependencies
compile('com.github.JakeWharton:ViewPagerIndicator:2.4.1#aar') {
exclude module: 'support-v4'
}
I think you can miss this line classpath 'com.android.tools.build:gradle:1.2.3'
My gradle:
apply plugin: 'com.android.application'
apply plugin: 'android-apt'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.example.n1to.testapp"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/services/javax.annotation.processing.Processor'
}
}
apt {
arguments {
androidManifestFile variant.outputs[0].processResources.manifestFile
// if you have multiple outputs (when using splits), you may want to have other index than 0
// you should set your package name here if you are using different application IDs
// resourcePackageName "your.package.name"
// You can set optional annotation processing options here, like these commented options:
// logLevel 'INFO'
// logFile '/var/log/aa.log'
}
}
buildscript {
repositories {
maven { url "https://jitpack.io" }
maven { url "http://dl.bintray.com/populov/maven" }
mavenCentral()
}
dependencies {
// replace with the current version of the Android plugin
classpath 'com.android.tools.build:gradle:1.2.3'
// replace with the current version of the android-apt plugin
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
}
}
repositories {
maven { url "https://jitpack.io" }
maven { url "http://dl.bintray.com/populov/maven" }
mavenCentral()
mavenLocal()
}
dependencies {
compile 'org.androidannotations:androidannotations:3.3.1'
apt 'org.androidannotations:androidannotations:3.3.1'
compile 'org.projectlombok:lombok:1.16.4'
compile('com.android.support:appcompat-v7:22.2.0') {
exclude module: 'support-v4'
}
compile('com.android.support:recyclerview-v7:22.2.0') {
exclude module: 'support-v4'
}
compile('com.android.support:cardview-v7:22.2.0') {
exclude module: 'support-v4'
}
compile('com.android.support:design:22.2.0') {
exclude module: 'support-v4'
}
compile 'com.android.support:support-v4:22.1.1'
compile('com.github.JakeWharton:ViewPagerIndicator:2.4.1#aar') {
exclude module: 'support-v4'
}
}