sAleksovski / react-native-android-widget

Build Android Widgets with React Native

Home Page:https://sAleksovski.github.io/react-native-android-widget/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I'd like you to give me an example of the build.gradle file.

kimgh06 opened this issue · comments

It was good to find the library that made widgets available in React Native.
However, in the process of building, I found the following error.

Loaded "env" configuration for the "development" profile: no environment variables specified. Learn more: https://docs.expo.dev/build-reference/variables/
Failed to find 'build.gradle' file for project: C:\Users\ggh06\Documents\Github\ReactNativeAndroidWidgetTest\android\app.
Error: build command failed.

To clear this error, you must have the build.gradle file or remove the android directory.
However, in the tutorial, I have to create a build.gradle file because the android directory is in it.

I've never experienced android development using Java or Kotlin, so I'm asking.
I'd like you to give me an example of the build.gradle file.
And I share my repository, check it please.

https://github.com/kimgh06/ReactNativeAndroidWidgetTest

I'll be waiting for your answer, Thank you.

If you are using expo you don't need to create the Android directory specifically for the widget.

Please read the docs https://saleksovski.github.io/react-native-android-widget/docs/tutorial/register-widget-expo

Oh, I see.
I think the titles that are in the docs needs to add description like "in android studio" in "Register Widget" of "tutorial".