Replies: 1 comment
-
OK, I found it. I must have Android Studio open the example/android application instead of opening the android module of the library
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm new to React Native library development. I used command
npx create-react-native-library@latest my-plugin
to create my first plugin, ever :). I choose Turbo Module type. I can run the generated example project using cli without problem. However, when I use Android Studio to open the android plugin projectI am using the latest Android Studio at this moment (Ladybug 2024.2.1 Patch 2) and it couldn't load the gradle project because the generated gradle file uses an old AGP (7.2.1). I changed it to
8.7.2
. Then it can be loaded. However, when I opened eitherMyPluginModule
class orMyPluginPackage
class, it couldn't resolve anyimport com.facebook.
Do I need to use any specific older Android Studio version?
Thanks for you help
Beta Was this translation helpful? Give feedback.
All reactions