Skip to content

In Android, when click some class or functions always didn't find declaration to go #56391

Description

@sunny635533

Description

Image

Steps to reproduce

In Android, when I click some class or functions always cannnot find declaration to go.This problem only occurs in React-native project.

React Native Version

0.83.1

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info

System:
  OS: macOS 15.7.4
  CPU: (11) x64 Apple M3 Pro
  Memory: 38.25 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 23.5.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.22
    path: /usr/local/bin/yarn
  npm:
    version: 10.9.2
    path: /usr/local/bin/npm
  Watchman:
    version: 2025.04.28.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.2
      - iOS 26.2
      - macOS 26.2
      - tvOS 26.2
      - visionOS 26.2
      - watchOS 26.2
  Android SDK:
    API Levels:
      - "35"
      - "36"
      - "36"
    Build Tools:
      - 35.0.0
      - 36.0.0
    System Images:
      - android-36.1 | Google Play ARM 64 v8a
      - android-36.1 | Pre-Release 16 KB Page Size Google Play ARM 64 v8a
      - android-36.1 | Pre-Release 16 KB Page Size Google Play Intel x86_64 Atom
      - android-36 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2025.3 AI-253.31033.145.2533.15113396
  Xcode:
    version: 26.2/17C52
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.1.0
    wanted: 20.1.0
  react:
    installed: 19.2.3
    wanted: 19.2.3
  react-native:
    installed: 0.83.1
    wanted: 0.83.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

no error, Anroid project can build normally, but when i edit codes and click some class or function in studio,it alway prompts that " Cannot find declaration to go ".

MANDATORY Reproducer

just init a react-native project

Screenshots and Videos

Image For example, i click "ReactActivity" class and want to look it 's source code, i couldn't go.

Activity

  1. react-native-bot commented on Apr 9, 2026

    @react-native-bot
    Collaborator

    Warning

    Missing reproducer: We could not detect a reproducible example in your issue report. Reproducers are mandatory and we can accept only one of those as a valid reproducer:


    You can read more about about it on our website: How to report a bug.

  2. zhuminjunivan commented on Apr 9, 2026

    @zhuminjunivan

    same issue:55517
    close K2 mode

    Image
  3. sunny635533 commented on Apr 10, 2026

    @sunny635533
    Author

    @zhuminjunivan there is no switch to k2 mode.

    Image Image
  4. zhuminjunivan commented on Apr 10, 2026

    @zhuminjunivan

    @sunny635533 哦 你as是最新的版本吧。你在studio64.exe.vmoptions里添加-Didea.kotlin.plugin.use.k1=true试试呢

  5. sunny635533 commented on Apr 10, 2026

    @sunny635533
    Author

    试过了,没效果

  6. zhuminjunivan commented on Apr 10, 2026

    @zhuminjunivan

    试过了,没效果

    好吧 那就只能降级as了

  7. larafmina2-beep commented on Apr 10, 2026

    @larafmina2-beep
  8. jsjeon commented on Apr 13, 2026

    @jsjeon

    Like I said at #55517 (comment), K1/K2 mode switch is no longer allowed, staring from Panda 3 I guess.

  9. react-native-bot commented on Oct 11, 2026

    @react-native-bot
    Collaborator

    This issue is stale because it has been open for 180 days with no activity. It will be closed in 7 days unless you comment on it or remove the "Stale" label.

  10. added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    and removed
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: AttentionIssues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.Platform: AndroidAndroid applications.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions