android-safe-args Questions
5
Solved
I m gonna use Navigation Framework with fragments but at the dependency step, when i tried to add SafeArgs from documentation i see that the new top level gradle file is different from documentatio...
Featly asked 6/3, 2022 at 17:22
12
Solved
I'm working on a small project and trying to use the new navigation architecture components. When i'm trying to add some arguments to a destination i got "Unresolved reference: NavArgs" error.
I f...
Abampere asked 24/1, 2019 at 19:29
2
I'm encountering an issue when building my Android project using gradlew with Java 17. The error message I'm getting is:
"Could not resolve androidx.navigation:navigation-safe-args-gradle-plug...
Saavedra asked 17/10, 2023 at 7:28
2
Solved
During the implementation of the passing parameter solution, in navigation between modules, I came across a serialization error. Deeplinks, as far as I know, accepts custom argument types, which ar...
Samella asked 29/1, 2020 at 21:4
12
Solved
I recently downloaded Android Studio Bumblebee and it helpfully asked whether I wanted to upgrade to Android Gradle Plugin 7.1.0, the version that shipped alongside Android Studio Bumblebee.
After ...
Libreville asked 26/1, 2022 at 0:45
3
Solved
I'm using BottomNavigationView with Navigation Component. When showing fragment is not root fragment, the tab icon is not updated (selected).
Example:
When I switch between Tab Home with Fragment A...
Fcc asked 12/2, 2022 at 4:46
9
Solved
I am facing issue with navigation component called safeargs.
I have used classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.0.0' in build gradle.
While applying plugin androidx.n...
Anyways asked 19/4, 2019 at 4:20
5
Solved
I'm working on an Android app using dataBinding and am currently trying to add the safe-args plugin, but after enabling the plugin, I can no longer get the root view via binding.root - Android Stud...
Message asked 23/10, 2019 at 5:55
5
Is there a way to clear navArgs after using them?
I have fragment A that opens fragment B with navArgs, then I navigate to fragment C and the user presses back, so fragment B is opened with the sam...
Crazed asked 29/6, 2020 at 13:25
0
I'm using the Android Navigation component with SafeArgs, and I want to add a shared element transition to an action. According to the documentation, I should be able to simply add an Extras object...
Zaratite asked 4/3, 2022 at 21:14
2
Solved
I have updated the Navigation framework from 2.3.5 to the 2.4.0-alpha01 version. I use it with Safe Args gradle plugin. After update, I started getting 'getActionId' overrides nothing and 'getArgum...
Ledet asked 2/6, 2021 at 12:29
3
Solved
I'm just learning a Android NavigationUI, and try set a toolbar title using string default value from Safe Args. But have some problem about it.
'String resources' file:
<string name="title_a...
Heighten asked 30/7, 2019 at 15:17
3
When I trying to use Safe Args plugin to jump from one fragment to another, the compiler shows "Unresolved reference: VideoFragmentDirections".
I have already set the classpath and dependency for s...
Hexapartite asked 25/11, 2019 at 15:24
1
I'm experiencing a weird issue here with Safe Args when trying to pass an argument of a type that's an enum defined inside such fragment class. Some code, for clarification.
This is the enum, as it...
Discourage asked 22/7, 2021 at 8:42
2
Solved
I'm using android navigation components with safe args.
I set that the argument is null-able and default value as null too.
The problem is when I want to pass any value an error is shown:
required:...
Worser asked 2/10, 2021 at 12:41
1
Solved
I am using android navigation components but it is giving an error A problem occurred configuring root project 'AndroidCodingChallenge'.
Could not resolve all artifacts for configuration ':classpa...
Flunk asked 20/8, 2021 at 16:22
4
My project uses SafeArgs. I've switched to a branch that someone else created, and building the project generates a compiler error, because the generated "~Directions" class' methods for return Act...
Cannabis asked 30/12, 2019 at 21:22
3
Solved
I am using safe-args to pass arguments from one fragment to the other. Android studio intermittently generates the fragmentArgs class with all the arguments.
What I have tried, and does work, is a...
Scissile asked 12/11, 2019 at 8:9
6
I found the question but does not have solution in code
I want to have data when backpress/manual back happens. I am using navigateUp() to go back. How can I pass data to previous fragment? naviga...
Catabasis asked 8/3, 2019 at 7:37
3
I'm trying to reuse a fragment in different navigation graphs with safe args enabled. I noticed that if the actions are different I get a compilation error. This is because the xxxFragmentDirection...
androidandroid-fragmentsandroid-architecture-componentsandroid-architecture-navigationandroid-safe-args
Rustin asked 12/1, 2020 at 14:29
1
Solved
I have an ActionBar menu icon that opens a CategoryFragment. This fragment takes in a category object SafeArgs argument passed from another fragment. In the CategoryFragment, I store the category's...
Pesky asked 4/2, 2020 at 22:58
1
I need to pass Kotlin's Pair as arguments.
<argument android:name="data" app:argType="kotlin.Pair" />
e: CreateCodeFragmentDirections.kt: (16, 15): 2 type arguments expected for class Pa...
Interval asked 15/10, 2019 at 12:3
1
Solved
I'm trying to pass an ArrayList<String> as an argument while using safeArgs. But when I select ArrayList from the list of serializable and build, it is throwing me these exceptions
One type ...
Sofko asked 2/6, 2020 at 4:46
1
Solved
I have a fragment:
class SomeFragment {
private val args by navArgs<SomeFragmentArgs>()
}
this fragment is used in two navigation graph:
first_nav.xml
....
<fragment
android:id="@+i...
Geoponic asked 22/11, 2019 at 6:19
1
Solved
I'm having a problem with my code i'm trying to pass arguments between fragments but it gives an exception
java.lang.IllegalArgumentException: Required argument "name" is missing and does not have...
Cubbyhole asked 16/4, 2020 at 10:7
1 Next >
© 2022 - 2024 — McMap. All rights reserved.