You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android中rememberNavController出现无明确提示报错的问题求助

Android中rememberNavController出现无明确提示报错的问题求助

各位大佬好!我最近做Android开发的时候卡壳了:用下面这段代码的时候,rememberNavController()相关的部分全红了——不管是对应的导入语句,还是调用这个方法的地方都标红,但我完全看不到具体的错误提示内容。我已经在代码里标注了出错的位置,麻烦大家帮我排查下问题出在哪呀?

以下是我的代码:

package com.example.appname 
/* 
 * Copyright 2025 The Android Open Source Project 
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the Licens

内容来源于stack exchange

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.08 14:03:03