Skip to content

PackageList error cannot find symbol #229

Closed Answered by cortinico
silencer07 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @silencer07,
Thanks for providing a reproducer, I was able to identify your issues:

  1. As you wrote your library in Kotlin, you need to add this line
apply plugin: 'com.android.library'
apply plugin: 'com.facebook.react'
+apply plugin: 'org.jetbrains.kotlin.android'

over here:
https://github.com/silencer07/codgen-error-reproducer-react-native/blob/main/RTNCalculator/android/build.gradle

  1. The name of the generated Spec interface is NativeRTNCalculatorSpec and not NativeCalculatorSpec so you need to change those two lines:
import com.facebook.react.bridge.ReactApplicationContext
-import com.rtncalculator.NativeCalculatorSpec
+import com.rtncalculator.NativeRTNCalculatorSpec

-class Calc…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@silencer07
Comment options

@silencer07
Comment options

Answer selected by silencer07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants