Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

I’m trying to move to migrate to androidx. I used the migration tool in Android Studio. When I do this I get the following stacktrace when I run my app. E/AndroidRuntime: FATAL EXCEPTION: main Process: com.peerke.outdoorpuzzlegame.debug, PID: 10901The ...

  • 0

I want to use com.google.android.material.tabs.TabLayout component with Android’s new ViewPager implementation androidx.viewpager2.widget.ViewPager2. However, the setupWithViewPager(..) method provided by TabLayout supports only the old ViewPager implementation. Is there a way to bind a TabLayout to a ViewPager2 component easily?

  • 0

I migrate my project to AndroidX and I got these errors when building the project: [TAG] Failed to resolve variable '${project.groupId}' [TAG] Failed to resolve variable '${project.version}' [TAG] Failed to resolve variable '${project.groupId}' [TAG] Failed ...

  • 0

I was about to use a constraint-layout in my project when I noticed that there are two different dependencies that I can use:com.android.support.constraint:constraint-layout androidx.constraintlayout:constraintlayoutIs there a difference between these two or some recommendation on which is preferable? EDIT Google is stopping support for com.android.support and ...

  • 0

How to add cardview in layout xml in AndroidX After upgraded to AndroidX <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="5dp"> gives a error The following classes could not be found: – android.support.v7.widget.CardView (Fix Build ...

  • 0

Switched to AndroidX and received deprecated: import androidx.test.InstrumentationRegistry. If I made next import: import androidx.test.platform.app.InstrumentationRegistry I can’t use getContext(). Ex: val context = InstrumentationRegistry.getContext(). In build.gradle: androidTestImplementation 'androidx.test.ext:junit:1.0.0-beta02' androidTestImplementation 'androidx.test:runner:1.1.0-beta02'

close