Revo Wisse
Lurker
This error has been posted on stackoverflow however mine is different.I updated to androidx, The project doesn't show any error after sync and cleaning! but when i try to build it, i encounter this error in the build generated source.
bellow is my app gradle
error: package android.support.annotation does not exist
C:\Users\REVO-WISSE\Documents\customer_master\app\build\generated\source\apt\debug\com\fundi\passenger\mMassage\InProgressFinishedMassageActivity_ViewBinding.java:5: error: package android.support
.annotation does not exist
import android.support.annotation.UiThread;
^
C:\Users\REVO-WISSE\Documents\customer_master\app\build\generated\source\apt\debug\com\fundi\passenger\mMassage\LocationPickerActivity_ViewBinding.java:4: error: package android.support.annotation
does not exist
import android.support.annotation.CallSuper;
^
C:\Users\REVO-WISSE\Documents\customer_master\app\build\generated\source\apt\debug\com\fundi\passenger\mMassage\LocationPickerActivity_ViewBinding.java:5: error: package android.support.annotation
does not exist
import android.support.annotation.UiThread;
^
C:\Users\REVO-WISSE\Documents\customer_master\app\build\generated\source\apt\debug\com\fundi\passenger\mMassage\MassageActivity_ViewBinding.java:4: error: package android.support.annotation does n
ot exist
import android.support.annotation.CallSuper;
bellow is my app gradle
Code:
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId 'com.fundi.taxi.rider'
minSdkVersion 21
targetSdkVersion 28
versionCode 13
versionName '14'
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
dexOptions {
javaMaxHeapSize '4g'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
allprojects {
repositories {
mavenCentral()
}
}
dependencies {
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.17'
}
dependencies {
api fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.google.code.findbugs'
})
api('com.mikepenz:fastadapter:2.0.0@aar') {
transitive = true
}
implementation 'com.afollestad.material-dialogs:core:0.9.0.0'
implementation 'com.mikepenz:iconics-core:2.8.1@aar'
implementation 'com.mikepenz:fontawesome-typeface:4.6.0.2@aar'
implementation ('cn.trinea.android.view.autoscrollviewpager:android-auto-scroll-view-pager:1.1.2') {
exclude module: 'support-v4'
}
testImplementation 'junit:junit:4.12'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.vectordrawable:vectordrawable:1.0.1'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'com.google.guava:guava:24.1-jre'
implementation 'com.dmitrymalkovich.android:material-design-dimens:1.4'
implementation 'com.ogaclejapan.smarttablayout:library:1.6.1@aar'
implementation 'com.ogaclejapan.smarttablayout:utils-v4:1.6.1@aar'
implementation 'com.jakewharton:butterknife:8.4.0'
implementation 'me.relex:circleindicator:1.2.2@aar'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'
implementation 'com.google.firebase:firebase-core:17.2.0'
implementation 'com.google.firebase:firebase-messaging:20.0.0'
implementation 'com.google.firebase:firebase-auth:19.0.0'
implementation 'com.mobsandgeeks:android-saripaar:2.0.3'
implementation 'com.google.android.libraries.places:places:2.0.0'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.google.android.gms:play-services-tasks:17.0.0'
implementation 'org.greenrobot:eventbus:3.1.0'
implementation 'com.makeramen:roundedimageview:2.2.1'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.github.siyamed:android-shape-imageview:0.9.3'
implementation 'de.hdodenhof:circleimageview:2.0.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.mcxiaoke.volley:library:1.0.19'
implementation 'com.balysv:material-ripple:1.0.2'
}
dependencies {
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
}
apply plugin: 'com.google.gms.google-services'
Code:
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.google.gms:google-services:4.3.1'
classpath 'com.jakewharton:butterknife-gradle-plugin:10.1.0'
classpath 'io.realm:realm-gradle-plugin:5.13.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
maven {
url "https://maven.google.com"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}