android-support-library

Is there a way to mix AndroidX and a subproject that uses the support library?

让人想犯罪 __ 提交于 2020-12-02 11:48:42
问题 I have an Android project that I would like to upgrade to AndroidX . However, I am using a module which is shared across other applications that have not migrated to AndroidX yet. I would like to avoid forking the code and prefer using the support library for the module while upgrading the reset of the project to use AndroidX. Right now I cannot import any android.support.v7 classes. So for example import android.support.v7.widget.AppCompatEditText; fails. I've tried to revert the changes

Can't find android.support.design.widget.Snackbar in support design library

谁说我不能喝 提交于 2020-08-21 03:47:50
问题 I develop own library module where I use Snackbar . Here is my Gradle file: apply plugin: 'com.android.library' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { minSdkVersion 14 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile 'com