Status Update
Comments
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #2
Dany, I believe this is fixed in a new release of safeargs ?
jb...@google.com <jb...@google.com> #3
Safeargs still needs AndroidComponentsExtension
to get the applicationID from the variants (7.2.0-alpha05
remove the extension?
jb...@google.com <jb...@google.com> #4
it moved to a different package : com.android.build.api.variant
na...@google.com <na...@google.com> #5
Safeargs still relies on AGP 4.2
. We need some of the BaseVariant
APIs to have replacements before we can upgrade to 7.0+
(
mo...@gmail.com <mo...@gmail.com> #6
The BaseVariant API are deprecated but still available in 7.x, so you should be able to release a newer version that uses the new package and still relies on the old API you require. Or am I missing something ?
ah...@gmail.com <ah...@gmail.com> #7
I'll try updating to the latest stable to see if we run into any issues. I can check to make sure changing the package name in 7.2.0-alpha05 works, but we would need it to be stable before we could do a release with this change.
il...@google.com <il...@google.com> #8
FYI this also breaks the latest Studio (2021.1.1 Beta 5)/AGP (7.1.0-beta05) beta where com.android.build.api.extension.AndroidComponentsExtension
has been removed.
Is there a particular reason why
As it stands, no one can upgrade either AGP/Studio Beta or Canary and take advantage of fixes in the latest versions because Navigation still uses the old AGP APIs.
ma...@zentity.com <ma...@zentity.com> #9
Was this fixed in Studio 2021.1.1 RC 1?
ma...@zentity.com <ma...@zentity.com> #11
This will be fixed in the Navigation Safe Args 2.5.0-alpha01
and 2.4.1
versions. You can follow the
ti...@persgroep.net <ti...@persgroep.net> #12
Thank you! 2.4.1 is at least two weeks out (possibly 4, if I'm not mistaken).
I applaud the AGPs team decision to stick to the new APIs though. Hopefully its not too long before Navigation fixes this.
pe...@gmail.com <pe...@gmail.com> #13
So we are talking mid february ?
ma...@gmail.com <ma...@gmail.com> #14
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Dolphin Canary 5 (2021.3.1.5)
- Android Gradle Plugin 7.3.0-alpha05
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
il...@google.com <il...@google.com> #15
Is this included in the Dolphin Beta 1 build? 7.3.0-beta01?
I'm able to consistent reproduce this when having the namespace
field setup in my gradle file. Removing it (and adding the value back to the Manifest files) does not cause the issue. Not sure if the same case here, or a new one.
ma...@gmail.com <ma...@gmail.com> #16
May be related to this one ?
ap...@google.com <ap...@google.com> #17
Right, the direct incompatibility between AGP and Safe Args is fixed, I believe, but there's another issue related to the use of applicationId
vs namespace
, tracking at
na...@google.com <na...@google.com> #18
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.navigation:navigation-fragment:2.7.3
androidx.navigation:navigation-runtime:2.7.3
pa...@gmail.com <pa...@gmail.com> #19
jb...@google.com <jb...@google.com> #20
Please file an issue with a minimal sample project that reproduces your issue with 2.7.3.
pa...@gmail.com <pa...@gmail.com> #21
be...@gmail.com <be...@gmail.com> #22
dieser Fehler tritt bei mir auf wenn ich .beginTransaction().addToBackStack(null) hinzufüge.
Vielleicht hilft das bei der Fehlersuche.
Gruß Wauzi
sa...@googlemail.com <sa...@googlemail.com> #23
ro...@gmail.com <ro...@gmail.com> #24
lo...@gmail.com <lo...@gmail.com> #25
Still facing this issue with 2.7.4
tp...@fundrise.com <tp...@fundrise.com> #26
vi...@gmail.com <vi...@gmail.com> #27
ag...@gmail.com <ag...@gmail.com> #28
ad...@gmail.com <ad...@gmail.com> #29
na...@google.com <na...@google.com> #30
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.navigation:navigation-fragment:2.8.0-alpha01
androidx.navigation:navigation-runtime:2.8.0-alpha01
an...@nine-yi.com <an...@nine-yi.com> #31
ex : findNavController().navigate(HomeFragmentDirections.actionHomeFragmentToNavSearch())
ne...@novo.co <ne...@novo.co> #32
Using the below library version and getting the same issue.
Fatal Exception: java.lang.IllegalArgumentException The fragment QuestionsFragment{c0772b4} (a73d416f-c5b6-444c-add0-8e1b5d151331 id=0x7f0a0cf4 tag=22f1b453-8116-4697-ae6b-3dffab63b52c) is unknown to the FragmentNavigator. Please use the navigate() function to add fragments to the FragmentNavigator managed FragmentManager.
androidx.navigation:navigation-fragment-ktx:2.7.7
androidx.navigation:navigation-ui-ktx:2.7.7
al...@gmail.com <al...@gmail.com> #33
Is navigation 2.8.0 going to be released soon?
wr...@gmail.com <wr...@gmail.com> #34
Using the below library version and getting the same issue.
Fatal Exception: java.lang.RuntimeException: Unable to pause activity {com.yenaly.han1meviewer/com.yenaly.han1meviewer.ui.activity.MainActivity}: java.lang.IllegalArgumentException: The fragment DownloadFragment{7c97732} (b82e8cc8-7667-4bb5-9fba-6afb0477513d) is unknown to the FragmentNavigator. Please use the navigate() function to add fragments to the FragmentNavigator managed FragmentManager.
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5711)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5662)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5614)
at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:55)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:185)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2724)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:255)
at android.os.Looper.loop(Looper.java:364)
at android.app.ActivityThread.main(ActivityThread.java:8979)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1053)
Caused by java.lang.IllegalArgumentException: The fragment DownloadFragment{7c97732} (b82e8cc8-7667-4bb5-9fba-6afb0477513d) is unknown to the FragmentNavigator. Please use the navigate() function to add fragments to the FragmentNavigator managed FragmentManager.
at androidx.navigation.fragment.FragmentNavigator$onAttach$2.onBackStackChangeCommitted(FragmentNavigator.kt:208)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2185)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2112)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2049)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3324)
at androidx.fragment.app.FragmentManager.dispatchPause(FragmentManager.java:3252)
at androidx.fragment.app.Fragment.performPause(Fragment.java:3323)
at androidx.fragment.app.FragmentStateManager.pause(FragmentStateManager.java:692)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:318)
at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:114)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1684)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3316)
at androidx.fragment.app.FragmentManager.dispatchPause(FragmentManager.java:3252)
at androidx.fragment.app.FragmentController.dispatchPause(FragmentController.java:296)
at androidx.fragment.app.FragmentActivity.onPause(FragmentActivity.java:284)
at android.app.Activity.performPause(Activity.java:8986)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1676)
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5701)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5662)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5614)
at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:55)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:185)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2724)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:255)
at android.os.Looper.loop(Looper.java:364)
at android.app.ActivityThread.main(ActivityThread.java:8979)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1053)
androidx.navigation:navigation-fragment-ktx:2.8.2
androidx.navigation:navigation-ui-ktx:2.8.2
il...@google.com <il...@google.com> #35
Re
yu...@rakuten.com <yu...@rakuten.com> #36
So
Description
Component used: Navigation
Version used: 2.6.0-beta01, 2.6.0-SNAPSHOT
Devices/Android versions reproduced on: All devices
Related issue https://issuetracker.google.com/issues/279306628
Project has 1 main graph that includes 3 sub nav graphs, each sub graph with a single fragment with a button.
Navigation flow.
Crash doesn't occur 2.6.0-alpha09 and below. Or if navigation doesn't happen within onResume callback by moving navigation call to button click.
Scenario is the top level fragment triggered a fragment result state back to bottom fragment after performing some business logics.