androidx

Work manager periodic job not working on chinese ROMs once app is force closed

故事扮演 提交于 2021-02-10 23:44:35
问题 I have tried stack overflow but people only added Android documentation which says it'll work but it doesn't i have also raised an issue in google's issue tracker here. I have tested on Android versions: 6, 7, 8 and work manager 1.0.0-alpha11, 1.0.0-alpha12 If anyone has found any solution for running periodic job please comment it'll be a great help. Thanks 回答1: This is a known issue and, as commented in this other bug on Google's issuetracker, there's not much that WorkManager can do in

Work manager periodic job not working on chinese ROMs once app is force closed

走远了吗. 提交于 2021-02-10 23:39:47
问题 I have tried stack overflow but people only added Android documentation which says it'll work but it doesn't i have also raised an issue in google's issue tracker here. I have tested on Android versions: 6, 7, 8 and work manager 1.0.0-alpha11, 1.0.0-alpha12 If anyone has found any solution for running periodic job please comment it'll be a great help. Thanks 回答1: This is a known issue and, as commented in this other bug on Google's issuetracker, there's not much that WorkManager can do in

Unable to run on device after migrating to AndroidX. failed for task ':app:mergeDebugResources' caused by Daemon startup failed

有些话、适合烂在心里 提交于 2021-02-10 19:58:37
问题 Good day everybody, I recently migrated to AndroidX and encounter some problems. The projects builds ok, but when I try to run on device, I get the error "Process unexpectedly exit." when running tasks. Specifically when it reach es app:MergeDebugResources This is what i get: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:mergeDebugResources'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:151) at

Viewpager2 transistion stuck halfway when slide opened using setCurrentItem

只谈情不闲聊 提交于 2021-02-10 07:37:08
问题 The app uses android viewpager2 (androidx.viewpager2:viewpager2:1.0.0-beta04) to show slides. Each slide have video on its top half and text on its bottom half. Each slide is built using same fragment class (code given below) If slided one by one, slide show works absolutely fine, however if attempted opening 'setCurrentItem', SOMETIMES slide stucks halfway in transistion as shown in image below. Presentation Activity myViewPager2.setOrientation(ViewPager2.ORIENTATION_HORIZONTAL);

Migrate annotation processor to androidX

核能气质少年 提交于 2021-02-10 05:20:29
问题 I've a annotation processor for android with following dependencies: compile 'com.squareup:javapoet:1.10.0' compile 'com.google.android:android:4.1.1.4' compile 'com.google.android:support-v4:r7' In my processor I access Activity and Fragment class. Which includes do I need now to be able to use the new android x Fragment ? I can't find anything about this... I naivly tried adding implementation 'androidx.fragment:fragment:1.0.0' // or implementation 'androidx.appcompat:appcompat:1.0.0' But

Migrate annotation processor to androidX

血红的双手。 提交于 2021-02-10 05:19:06
问题 I've a annotation processor for android with following dependencies: compile 'com.squareup:javapoet:1.10.0' compile 'com.google.android:android:4.1.1.4' compile 'com.google.android:support-v4:r7' In my processor I access Activity and Fragment class. Which includes do I need now to be able to use the new android x Fragment ? I can't find anything about this... I naivly tried adding implementation 'androidx.fragment:fragment:1.0.0' // or implementation 'androidx.appcompat:appcompat:1.0.0' But

TextInputLayout error: Couldn't resolve resource @string/path_password_strike_through

主宰稳场 提交于 2021-02-08 21:33:13
问题 AndroidX: I'm trying to use a TextInputLayout but when I put it in my XML I receive this error: Render Problem: Couldn't resolve resource @string/path_password_strike_through Failed to initiate one or more classes The following classes could not be instantiated: com.google.android.material.textfield.TextInputLayout Here the Stack Trace: java.lang.AssertionError: error in parsing "g/"java.lang.NumberFormatException: For input string: "/" at android.util.PathParser_Delegate.getFloats(PathParser

TextInputLayout error: Couldn't resolve resource @string/path_password_strike_through

我的未来我决定 提交于 2021-02-08 21:32:10
问题 AndroidX: I'm trying to use a TextInputLayout but when I put it in my XML I receive this error: Render Problem: Couldn't resolve resource @string/path_password_strike_through Failed to initiate one or more classes The following classes could not be instantiated: com.google.android.material.textfield.TextInputLayout Here the Stack Trace: java.lang.AssertionError: error in parsing "g/"java.lang.NumberFormatException: For input string: "/" at android.util.PathParser_Delegate.getFloats(PathParser

ActivityResultContracts.TakePicture()

戏子无情 提交于 2021-02-08 16:42:35
问题 In androidx.activity version 1.2.0-alpha05 API for TakePicture contract has been changed: The TakePicture contract now returns a boolean indicating success rather than a thumbnail Bitmap as this was very rarely supported by camera apps when writing the image to the provided Uri While in alpha04 callback received a Bitmap object, now only a Boolean object that describes success is received by the callback. So now the Uri Parameter of the launch method of the launcher must not be null, but must

ActivityResultContracts.TakePicture()

青春壹個敷衍的年華 提交于 2021-02-08 16:38:09
问题 In androidx.activity version 1.2.0-alpha05 API for TakePicture contract has been changed: The TakePicture contract now returns a boolean indicating success rather than a thumbnail Bitmap as this was very rarely supported by camera apps when writing the image to the provided Uri While in alpha04 callback received a Bitmap object, now only a Boolean object that describes success is received by the callback. So now the Uri Parameter of the launch method of the launcher must not be null, but must