I am trying to use Retrofit with RxAndroid, so I imported the the required dependencies as shown below. but whn I run the App, I receive the following
error.:
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/rxjava.properties
File1: C:\Users\PC-Amryi\.gradle\caches\modules-2\files-2.1\io.reactivex\rxjava\1.1.9\e4362e62f1ba92e360b197d6d7ffae67e5ecae9a\rxjava-1.1.9.jar
File2: C:\Users\PC-Amryi\.gradle\caches\modules-2\files-2.1\io.reactivex.rxjava2\rxjava\2.0.0\5151c737c01616c372c3d00ab145868ede10e826\rxjava-2.0.0.jar
to solve this issue I tried to use different RxAndroid and RxJava libs as follows:
//RxJava and RxAndroid
compile 'io.reactivex:rxandroid:1.2.1'
compile 'io.reactivex:rxjava:1.1.9'
//compile 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
//compile 'io.reactivex.rxjava2:rxjava:2.0.1'
//compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
but I still get the same error
Please have a look at the gradle file poted below, and please help me to solve it
gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.example.pc_amr.rxretrofit_1"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
//to enable Java-8
jackOptions {
enabled true
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
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:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
//RxJava and RxAndroid
compile 'io.reactivex:rxandroid:1.2.1'
compile 'io.reactivex:rxjava:1.1.9'
//compile 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
//compile 'io.reactivex.rxjava2:rxjava:2.0.1'
//compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.4.0'
//compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.squareup:otto:1.3.8'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.android.support:recyclerview-v7:25.1.1'
compile 'com.squareup.okhttp3:okhttp:3.9.0'
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.solidfire.code.gson:gson:2.6.2'
compile 'com.google.code.gson:gson-parent:2.8.1'
compile 'com.solidfire.code.gson:gson-parent:2.6.2'
compile 'com.android.support:support-annotations:25.1.1'
compile 'com.squareup.picasso:picasso:2.5.2'
}
It's
compile "com.squareup.retrofit2:retrofit:2.3.0"
compile "com.squareup.retrofit2:converter-gson:2.3.0"
compile "com.squareup.retrofit2:adapter-rxjava2:2.3.0"
compile "io.reactivex.rxjava2:rxandroid:2.0.1"
compile "io.reactivex.rxjava2:rxjava:2.1.2"
There's no need to exclude meta informations by using matching versions.
Related
I have been trying to add a dependency of com.shamanland:fonticon:0.1.8 but as I add this I get the error
error: duplicate value for resource 'attr/textSize' with config ''.
error: resource previously defined here.
There are too many values with duplication issue to remove the values.
I have tried changing compileSdkVersion and targetSdkVersion to 25 but this did not help either.
I tried to use exclude but I don't know what to exclude exactly. Can anyone help me with this issue? Thank you.
My gradle:
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
configurations {
all*.exclude module: 'okhttp'
all*.exclude module: 'okio'
}
compileSdkVersion 27
buildToolsVersion '27.0.2'
defaultConfig {
applicationId "com.abc.def"
vectorDrawables.useSupportLibrary = true
minSdkVersion 17
targetSdkVersion 27
versionCode 15
versionName "1.2.4"
multiDexEnabled = true
}
buildTypes {
release {
lintOptions {
disable 'MissingTranslation'
checkReleaseBuilds false
}
minifyEnabled false
}
}
aaptOptions {
cruncherEnabled = false
}
dexOptions {
javaMaxHeapSize "2g"
}
}
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
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'
})
compile 'com.android.support:design:27.0.2'
compile 'com.android.support:appcompat-v7:27.0.2'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:percent:27.0.2'
compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
compile 'com.jakewharton:butterknife:8.5.1'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.android.support:recyclerview-v7:27.0.2'
compile 'com.android.support:cardview-v7:27.0.2'
provided 'org.projectlombok:lombok:1.16.16'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.8'
annotationProcessor "org.projectlombok:lombok:1.16.16"
compile 'com.google.android.gms:play-services-maps:11.0.1'
testCompile 'junit:junit:4.12'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
compile 'com.chauthai.swipereveallayout:swipe-reveal-layout:1.4.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.4.+'
compile 'com.mikhaellopez:circularimageview:3.0.2'
compile 'com.wdullaer:materialdatetimepicker:3.2.2'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.github.jd-alexander:library:1.1.0'
compile 'com.google.android.gms:play-services-location:11.0.1'
compile 'com.google.android.gms:play-services-maps:11.0.1'
compile 'com.yarolegovich:discrete-scrollview:1.2.0'
compile 'com.miguelcatalan:materialsearchview:1.4.0'
compile 'com.wang.avi:library:2.1.3'
compile 'com.google.firebase:firebase-core:11.0.1'
compile 'com.google.firebase:firebase-messaging:11.0.1'
compile 'com.android.support:multidex:1.0.0'
compile 'com.github.ksoichiro:android-observablescrollview:1.5.0'
compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
compile 'com.hedgehog.ratingbar:app:1.1.2'
compile 'com.eftimoff:android-pathview:1.0.8#aar'
compile('com.crashlytics.sdk.android:crashlytics:2.6.8#aar') {
transitive = true;
}
compile 'uk.co.chrisjenx:calligraphy:2.3.0'
apply plugin: 'com.google.gms.google-services'
compile 'com.stone.vega.library:VegaLayoutManager:1.0.1'
compile project(':library')
compile 'me.henrytao:smooth-app-bar-layout:24.1.0.0'
compile project(':PayTabs_SDK')
/*----------------payfort sdk------------*/
implementation 'com.victor:lib:1.0.1'
implementation 'com.shamanland:fonticon:0.1.8'
implementation('com.nispok:snackbar:2.11.+') {
// exclusion is not necessary, but generally a good idea.
exclude group: 'com.google.android', module: 'support-v7'
}
implementation 'com.google.guava:guava:18.0'
implementation 'org.bouncycastle:bcprov-jdk16:1.46'
implementation 'commons-codec:commons-codec:1.10'
implementation project(':FORTSDKv1.4.4')
}
It may be due to the implementation of other external dependency. In my case, I try removing the external dependency one by one. Most Probably while adding dependency the same dependency was used on other external dependency. So try removing library dependency one by one and see which was causing problem.
I was generating the APK for release, But facing following issues with the APK.
Stuck #
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/gcm/PendingCallback.class
Not able to proceed further with this issue.
Tried every other possible way to get rid of this error.
Here is the snapshot of my Gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.xxxxxxxxxxx.xxxxx"
minSdkVersion 18
targetSdkVersion 27
versionCode 1
versionName "1.0"
versionName getVersionName()
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
useLibrary 'org.apache.http.legacy'
}
dexOptions {
jumboMode true
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
defaultConfig {
multiDexEnabled = true
vectorDrawables.useSupportLibrary = true
}
configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
all*.exclude group: 'com.android.support', module: 'support-annotations'
all*.exclude module: 'play-services-awareness'
}
}
//repositories {
// maven { url 'https://zendesk.jfrog.io/zendesk/repo' }
//}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:support-v4:27.1.0'
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:design:27.1.0'
implementation 'com.android.support:support-vector-drawable:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'com.android.support:cardview-v7:27.1.0'
compile 'com.github.silvestrpredko:dot-progress-bar:1.1'
compile 'com.github.d-max:spots-dialog:0.4#aar'
compile 'com.github.clans:fab:1.6.2'
compile 'com.daimajia.slider:library:1.1.5#aar'
compile 'com.prolificinteractive:material-calendarview:1.4.3'
compile 'fr.avianey.com.viewpagerindicator:library:2.4.1.1#aar'
compile 'com.synnapps:carouselview:0.1.4'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.github.lawloretienne:discreteslider:0.0.9'
compile 'com.appyvet:materialrangebar:1.4.1'
compile 'com.getkeepsafe.taptargetview:taptargetview:1.11.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
//Swipe stack card Intergrtion
compile 'link.fls:swipestack:0.3.0'
compile 'in.arjsna:swipecardlib:1.0.2'
compile 'com.borax12.materialdaterangepicker:library:1.9'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
implementation project(':aphidFlipViewLibrary')
compile 'com.gjiazhe:PanoramaImageView:1.0'
implementation 'com.github.Q42:AndroidScrollingImageView:1.3.2'
compile 'com.github.lespinsideg:SimplePanorama:0.3.1'
compile ('co.realtime:messaging-android:2.1.58'){
exclude group: 'com.google.android.gms', module: 'play-services'
}
//gmail intergation
compile 'com.google.android.gms:play-services-auth:11.8.0'
compile 'com.google.firebase:firebase-core:11.8.0'
compile 'com.google.android.gms:play-services-maps:11.8.0'
compile 'com.google.android.gms:play-services:11.8.0'
compile 'com.google.android.gms:play-services-places:11.8.0'
compile 'com.google.android.gms:play-services-location:11.8.0'
compile 'com.mxn.soul:flowingdrawer-core:2.0.0'
compile 'com.yalantis:contextmenu:1.0.7'
compile 'com.github.florent37:materialimageloading:1.0.2'
compile 'com.pnikosis:materialish-progress:1.7'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'ch.acra:acra:4.6.1'
compile 'com.github.clans:fab:1.6.2'
compile 'com.koushikdutta.ion:ion:2.+'
compile 'com.squareup.okhttp3:logging-interceptor:3.0.1'
compile 'com.squareup.okio:okio:1.7.0'
compile 'com.squareup.retrofit2:converter-gson:2.0.1'
compile 'pub.devrel:easypermissions:0.2.0'
compile 'com.github.silvestrpredko:dot-progress-bar:1.1'
implementation 'com.android.support:mediarouter-v7:27.1.0'
compile 'org.florescu.android.rangeseekbar:rangeseekbar-library:0.3.0'
compile 'com.firebase:firebase-jobdispatcher:0.5.2'
compile 'com.android.support:multidex:1.0.1'
compile 'de.hdodenhof:circleimageview:2.2.0'
//gcm error
compile 'com.adjust.sdk:adjust-android-criteo:4.12.4'
compile 'com.seatgeek:placesautocomplete:0.3-SNAPSHOT'
implementation 'com.jakewharton:butterknife:8.4.0'
//ZENDEX
implementation group: 'com.zendesk', name: 'support', version: '2.0.0'
// compile project(':sdkui')
implementation 'com.github.takusemba:spotlight:1.3.3'
}
apply plugin: 'com.google.gms.google-services'
enable multidex in app module
defaultConfig {
multiDexEnabled true
}
dependencies {
implementation'com.android.support:multidex:1.0.1'
}
also set name attribute for application tag
like
<application
android:name="android.support.multidex.MultiDexApplication" >
</application>
You are repeating multiDexEnabled = true both in default config structure. Remove one of these.
Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > java.lang.NoSuchMethodError: com.squareup.javapoet.TypeName.isBoxedPrimitive()Z
I keep getting the same error when using auto-value-parcel and auto-value-firebase. The project works without adding their dependencies and usages. But when I add them back the problem returns. Please take a look at my app/build.gradle file
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "PACKAGE"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/rxjava.properties'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile 'com.google.code.findbugs:jsr305:3.0.1'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
// Android Support Libraries
compile 'com.android.support:appcompat-v7:26.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:26.0.1'
compile 'com.android.support:recyclerview-v7:26.0.1'
compile 'com.android.support:exifinterface:26.0.1'
// JavaPoet
annotationProcessor 'com.squareup:javapoet:1.8.0'
provided 'com.squareup:javapoet:1.8.0'
// Dagger 2
compile 'com.google.dagger:dagger:2.4'
provided 'javax.annotation:jsr250-api:1.0'
annotationProcessor 'com.google.dagger:dagger-compiler:2.4'
// AutoValue
provided 'com.google.auto.value:auto-value:1.5'
annotationProcessor 'com.google.auto.value:auto-value:1.5'
// AutoParcel
annotationProcessor 'com.ryanharter.auto.value:auto-value-parcel:0.2.5'
// AutoValue Firebase
annotationProcessor 'me.mattlogan.auto.value:auto-value-firebase:1.1.0'
provided 'me.mattlogan.auto.value:auto-value-firebase-annotation:1.1.0'
// Firebase
compile 'com.google.firebase:firebase-database:11.4.0'
compile 'com.google.firebase:firebase-auth:11.4.0'
compile 'com.github.frangsierra:rx2firebase:1.1.3'
// RxJava 2
compile 'io.reactivex.rxjava2:rxjava:2.1.0'
compile 'com.akaita.java:rxjava2-debug:1.2.0'
// RxAndroid 2
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
// RxLifecycle 2
compile 'com.trello.rxlifecycle2:rxlifecycle-android:2.0.1'
// RxBinding 2
compile 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
// Simple Stack
compile 'com.github.Zhuinden:simple-stack:1.7.2'
// Butterknife
compile 'com.jakewharton:butterknife:8.4.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
// Timber
compile 'com.jakewharton.timber:timber:4.3.1'
// SwipyRefreshLayout
compile 'com.github.orangegangsters:swipy:1.2.3#aar'
// Glide
compile 'com.github.bumptech.glide:glide:4.1.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.1.1'
// Glide Transformations
compile 'jp.wasabeef:glide-transformations:2.0.2'
// Calligraphy
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
// Lorem Ipsum Generator
compile 'de.sven-jacobs:loremipsum:1.0'
// Pretty Time
compile 'org.ocpsoft.prettytime:prettytime:4.0.1.Final'
// Flexible AdannotationProcessorers
compile 'eu.davidea:flexible-adapter:5.0.0-rc2'
// Animated Checkbox
compile 'com.hanks.animatecheckbox:library:0.1'
// EventBus
compile 'org.greenrobot:eventbus:3.0.0'
// Parceler
compile 'org.parceler:parceler-api:1.1.6'
annotationProcessor 'org.parceler:parceler:1.1.6'
//PhotoView
compile 'com.github.chrisbanes:PhotoView:2.0.0'
// Android Image Cropper
compile 'com.theartofdev.edmodo:android-image-cropper:2.4.4'
// File Chooser
compile 'com.droidninja:filepicker:2.0.8#aar'
// Intl Phone Input
compile 'net.rimoto:intlphoneinput:1.0.1'
}
apply plugin: 'com.google.gms.google-services'
I have encountered this problem while syn of Gradle
This is the Code of build.gradle(Module app)
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "ahmedchtn.smartschool"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
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'
})
//RecyclerView
//retrofit,gson
//glide
compile
'com.github.bumptech.glide:glide:3.7.0'
compile
'com.android.support:appcompat-v7:25.3.1'compile
'com.android.support.constraint:constraint-layout:1.0.2'compile
'com.android.support:support-v4:25.3.1'compile
'com.android.support:design:25.3.1'compile
'com.github.bumptech.glide:glide:3.7.0'compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
testCompile 'junit:junit:4.12'
}
I have tried to deleted some lines of compile but I did not arrive to resolve the problem,
You have few typos in your file:
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support:appcompat-v7:25.3.1'
You should not have line break after compile.
Typical structure of dependencies block is:
dependencies {
// production
compile 'group:name:version'
// for local tests
testCompile 'group:name:version'
// for tests on device / emulator
androidTestCompile 'group:name:version'
}
If you really want to have line break (I don't even know why) you have to explicitly add parentheses around dependency definition:
compile (
'com.github.bumptech.glide:glide:3.7.0'
)
Change it to this.
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
testCompile 'junit:junit:4.12'
Have problems with two libraries.
Gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "pe.com.gmd.innova.adexus.adexusday"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
jackOptions {
enabled true
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
/*
greendao {
schemaVersion 7
}*/
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(name: 'androidgmd2', ext: 'aar')
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:multidex:1.0.1'
compile 'org.greenrobot:greendao:3.2.2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.androidanimations:library:1.1.3#aar'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'com.viewpagerindicator:library:2.4.1#aar'
compile 'com.google.android.gms:play-services-location:10.2.1'
compile 'com.google.android.gms:play-services-maps:10.2.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'com.google.firebase:firebase-crash:10.0.1'
compile 'com.google.code.gson:gson:2.8.0'
compile 'me.dm7.barcodescanner:zbar:1.9.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha8'
compile 'com.android.support:support-v4:25.3.1'
testCompile 'junit:junit:4.12'
compile 'io.reactivex:rxandroid:1.2.0'
compile 'io.reactivex:rxjava:1.1.8'
compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
}
apply plugin: 'com.google.gms.google-services'
not have problems with gradle process any error..
so have problems in ejecuttion application.. because my buttknife not working injection.
Maybe exist version so working fine with rxjava librarys ? or the version is really low
my version library compile 'com.jakewharton:butterknife:7.0.1'
It looks like you are not importing AnnotationProcessor.
Try this with latest versions:
compile 'com.jakewharton:butterknife:8.6.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'