androidx

Android Test Orchestrator not working with Android X

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 08:26:46
问题 I have recently migrated my project to use AndroidX, and have configured test orchestrator for my espresso tests on gradle using the following docs: https://developer.android.com/training/testing/junit-runner#using-android-test-orchestrator I have the dependency: androidTestUtil 'androidx.test:orchestrator:1.1.0-beta01' However, none of my tests are executed and looks like they fail when running gradle runs the following adb shell command i.e: adb shell 'CLASSPATH=$(pm path android.support

Could not resolve org.jetbrains:annotations:{strictly 13.0}

与世无争的帅哥 提交于 2019-12-11 19:05:25
问题 When I use in my Android project androidTestImplementation "androidx.test.ext:junit:1.1.1" androidTestImplementation 'androidx.test:runner:1.2.0' to reduce deprecation warnings, I run into > Could not resolve all files for configuration ':sample:debugAndroidTestRuntimeClasspath'. > Could not resolve org.jetbrains:annotations:{strictly 13.0}. Required by: project :sample > Cannot find a version of 'org.jetbrains:annotations' that satisfies the version constraints: Dependency path 'Moka:sample

AndroidX incompatibility error for image_picker_saver error

▼魔方 西西 提交于 2019-12-11 16:04:39
问题 During the run console, the image_picker_saver package is giving AndroidX incompability. the package is - image_picker_saver: ^0.1.0 Can anyone help how to handle this error? Run console - ^ symbol: variable ActivityCompat C:\flutter\.pub-cache\hosted\pub.dartlang.org\image_picker_saver-0.1.0\android\src\main\java\io\flutter\plugins\imagepickersaver\ImagePickerDelegate.java:139: error: cannot find symbol ActivityCompat.requestPermissions(activity, new String[]{permissionName}, requestCode); ^

Migrate to AndroidX for Wear Support Libraries after Android Pie?

▼魔方 西西 提交于 2019-12-11 15:20:02
问题 Starting in Fall of 2019 the Google Play Console requires your wearable application targets at least Android 9 (API level 28). August 1, 2019: Required for new apps November 1, 2019: Required for app updates After changing my build.gradle to target 29 it gives me a warning recommending I use AndroidX libraries when targeting Android Q or newer. What should I change the com.android.support dependencies to? implementation 'com.android.support:wear:28.0.0' implementation 'com.android.support

FragmentPagerAdapter throwing IllegalArgumentException - Fragment Already Added

孤人 提交于 2019-12-11 14:55:07
问题 I have a ViewPager and a TabLayout containing 3 Fragments. At times when I swipe through(with the help of ViewPager ) the 3 Fragments, an IllegalArgumentException is thrown with a message that Fragment is already added: ... (Fragment at index 0 to be specific). What could be the problem as the error log is only showing something to do with FragmentManager class and none of my Fragment classes? Below is the adapter(s) I am using import androidx.fragment.app.Fragment import androidx.fragment

ClassNotFoundException: config_inputEventCompatProcessorOverrideClassName androidx, running on andoridx crashes

跟風遠走 提交于 2019-12-11 14:41:55
问题 After Migrating to AndroidX(29) running on the AndroidX device Crashes showing ClassNotFoundException: config_inputEventCompatProcessorOverrideClassName the project compiles and runs it crashes when launched in andorid10.0 when clicked on the editText i get this error enter code here NullPointerException: Attempt to invoke virtual method 'java.util.List android.view.InputEventCompatProcessor.processInputEventForCompatibility(android.view.InputEvent)' on a null object reference project/build

Manifest merger failed : Attribute application@appComponentFactory cant solve this

…衆ロ難τιáo~ 提交于 2019-12-11 14:24:51
问题 i am new in android and have an app that when build my project have this Error :: ERROR: Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at

Application crashing with WorkManager

一个人想着一个人 提交于 2019-12-11 10:31:43
问题 So recently I'm trying to test WorkManager and I'm having a bug which I don't know how to solve it... The error that I'm having is this one : 2018-06-16 16:36:36.594 23798-23815/? E/AndroidRuntime: FATAL EXCEPTION: pool-2-thread-1 Process: com.example.damiii.myjobintentservice, PID: 23798 java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at androidx.room.RoomOpenHelper.checkIdentity(RoomOpenHelper

Why Dialog does not have a NavController [Missing]?

扶醉桌前 提交于 2019-12-11 08:47:12
问题 I am trying to use the latest update of Nav Component in my application where i can add dialog( BottomSheetDialogFragment ) in my nav graph nav_version = "2.1.0-alpha05" Part of code from my nav_graph : <dialog android:id="@+id/settingFragment" android:name="com.andor.navigate.notepad.listing.fragment.SettingFragment" tools:layout="@layout/fragment_setting"> <action android:id="@+id/action_settingFragment_to_confirmationFragment" app:destination="@id/confirmationFragment" /> </dialog> <dialog

Howto androidx-databinding for onClick to static method with parameter

筅森魡賤 提交于 2019-12-11 08:45:24
问题 (Note: this is a follow up question to Is it possible to use androidx-navigation with onClick-databinding without writing boilercode in Fragment? I want to use androidx-databinding to handle onClick calling a static method with parameters Utils.myNavigate(...) via the xml-layout-file My Code below is verifyed by the compile process but is never called when i click on the button. How to fix this? My Layoutfile: <layout ...> <data> <import type="de.k3b.androidx.navigationdemo.R" /> <import type