Skip to content

Commit 23e41b0

Browse files
authored
docs: add missing mavenLocal repository on Android (#413)
1 parent fb2a7c2 commit 23e41b0

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

website/docs/docs/brownfield/android.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,15 +335,25 @@ tasks.named("generateMetadataFileForMavenAarPublication") {
335335

336336
> Note: You'll need an existing Android app or create a new one in Android Studio.
337337
338-
1. Add the dependency to your app's `build.gradle.kts`:
338+
1. Add `mavenLocal()` to your app's dependency resolution in `settings.gradle.kts`:
339+
340+
```groovy title="settings.gradle.kts" {3}
341+
dependencyResolutionManagement {
342+
repositories {
343+
mavenLocal()
344+
}
345+
}
346+
```
347+
348+
2. Add the dependency to your app's `build.gradle.kts`:
339349

340350
```groovy title="build.gradle.kts" {2}
341351
dependencies {
342352
implementation("com.callstack:rnbrownfield:0.0.1-local")
343353
}
344354
```
345355

346-
1. Initialize React Native in your `MainActivity`:
356+
3. Initialize React Native in your `MainActivity`:
347357

348358
```kotlin
349359
class MainActivity : AppCompatActivity() {

0 commit comments

Comments
 (0)