androidx

With API 28 and “androidx.appcompat” library project says “AppCompatActivity” symbol not found

一世执手 提交于 2020-02-26 12:04:06
问题 I updated my build and target version to 28 (Pie) and replaced the relevant dependencies. Now my project says Symbol not found on AppCompatActivity . I have tried to Clean project Rebuild project Invalidate Caches / Restart But the result is the same. Moreover when I try Ctrl + Space after extends keyword in activity class there is no "AppCompatActivity suggestion. I tried to investigate if its present in libraries folder, it's present there. Now, what should I do to make it work? If there is

Androidx Googlesource: get specific version?

ぃ、小莉子 提交于 2020-02-25 04:17:29
问题 I just downloaded the Androidx source code according to the description on https://android.googlesource.com/platform/frameworks/support/+/androidx-master-dev Now I want to have androidx.core version 1.1.0 source code. I changed to frameworks/support/core/core but of course that's the latest version. So I had a look at git tag . It lists a dozen tags like $ git tag 1.0_20180720 1.0_20180720_G android-4.0.1_r1 android-4.0.1_r1.1 android-4.0.1_r1.2 [..] platform-tools-29.0.5 support-library-27.0

Androidx Googlesource: get specific version?

主宰稳场 提交于 2020-02-25 04:15:31
问题 I just downloaded the Androidx source code according to the description on https://android.googlesource.com/platform/frameworks/support/+/androidx-master-dev Now I want to have androidx.core version 1.1.0 source code. I changed to frameworks/support/core/core but of course that's the latest version. So I had a look at git tag . It lists a dozen tags like $ git tag 1.0_20180720 1.0_20180720_G android-4.0.1_r1 android-4.0.1_r1.1 android-4.0.1_r1.2 [..] platform-tools-29.0.5 support-library-27.0

IllegalStateException: WorkManager is already initialized

﹥>﹥吖頭↗ 提交于 2020-02-24 04:32:21
问题 Having these dependencies: dependencies { implementation "androidx.work:work-runtime:2.0.1" androidTestImplementation "androidx.work:work-testing:2.0.1" } When running this code for the second time: Configuration config = new Configuration.Builder().build(); WorkManager.initialize(getApplicationContext(), config); this.workManager = WorkManager.getInstance(); I get this error message: java.lang.IllegalStateException: WorkManager is already initialized. Did you try to initialize it manually

IllegalStateException: WorkManager is already initialized

人走茶凉 提交于 2020-02-24 04:31:37
问题 Having these dependencies: dependencies { implementation "androidx.work:work-runtime:2.0.1" androidTestImplementation "androidx.work:work-testing:2.0.1" } When running this code for the second time: Configuration config = new Configuration.Builder().build(); WorkManager.initialize(getApplicationContext(), config); this.workManager = WorkManager.getInstance(); I get this error message: java.lang.IllegalStateException: WorkManager is already initialized. Did you try to initialize it manually

Add androidx source code to Android Studio project for debugging

牧云@^-^@ 提交于 2020-02-23 03:38:28
问题 The bounty expires in 2 days . Answers to this question are eligible for a +150 reputation bounty. stefan.at.wpf wants to draw more attention to this question. I want to to add the androidx source code to my Android Studio project instead of using the provided library ( implementation 'androidx.core:core-ktx:1.1.0' ). Using the provided library I can only view the source code (it's read only during debugging), but I need to modify it for testing purposes. So how can I add the androidx source

Add androidx source code to Android Studio project for debugging

房东的猫 提交于 2020-02-23 03:37:11
问题 The bounty expires in 2 days . Answers to this question are eligible for a +150 reputation bounty. stefan.at.wpf wants to draw more attention to this question. I want to to add the androidx source code to my Android Studio project instead of using the provided library ( implementation 'androidx.core:core-ktx:1.1.0' ). Using the provided library I can only view the source code (it's read only during debugging), but I need to modify it for testing purposes. So how can I add the androidx source

How to convert an image into base64 and also compress it using kotlin in androidX?

假如想象 提交于 2020-02-08 10:00:32
问题 I am creating an offline SMS app. I want to know how to convert image, chosen by the user, into string base64 and also compressed it. I have searched a lot but not much material I found.All the data I found is in Java. But I need in Kotlin language. Activity File class MainActivity1 :AppCompatActivity(){ private val requestReceiveSms: Int = 1 private val requestSendSms: Int = 2 private var mMessageRecycler: RecyclerView? = null private var mMessageAdapter: MessageAdapter? = null val SELECT

AndroidX databinding generation is wrong

隐身守侯 提交于 2020-02-06 03:37:22
问题 I'm trying to migrate to androidx and i'm facing the following issue: Databinding generates classes that includes android.support.. instead of androidx.. . Does anyone have an ideea about how to replace android.support.. with androidx.. ? I'm using Android Studio 3.2, build gradle version is : 3.2.0. Here is an example of bad generated imports: import android.support.design.widget.AppBarLayout; import android.support.design.widget.CollapsingToolbarLayout; import android.support.v7.widget

Wrong button style when creating AlertDialog with androidx DialogFragment

你。 提交于 2020-02-02 03:08:09
问题 Here is my root style: <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar"> And here is how I create dialog: override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { return AlertDialog.Builder(requireActivity()) .apply { setMessage(R.string.dialog_delete_service_message) setPositiveButton( R.string.dialog_delete_service_positive_button ) { _, _ -> listener?.onConfirmed() } setNegativeButton(R.string.dialog_delete_service_negative_button, null) }.create() }