Skip to content

fix(android): Resolve the issue where users need to manually import local_repo in build.gradle in version v3.0.2.#1279

Open
2Stephen wants to merge 1 commit intoreact-native-async-storage:mainfrom
2Stephen:fix/android-local-repo-path-resolution
Open

fix(android): Resolve the issue where users need to manually import local_repo in build.gradle in version v3.0.2.#1279
2Stephen wants to merge 1 commit intoreact-native-async-storage:mainfrom
2Stephen:fix/android-local-repo-path-resolution

Conversation

@2Stephen
Copy link
Copy Markdown

Resolve the issue where users need to manually import local_repo in build.gradle in version v3.0.2.
So Android users don‘t need have to import local_repo setting about like README.

Summary

Bug

error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all dependencies for configuration ':app:debugCompileClasspath'. 
> Could not find org.asyncstorage.shared_storage:storage-android:1.0.0. Required by: project ':app' 
> project :react-native-async-storage_async-storage * Try:

Resolve Detail

When I imported this dependency and tried to compile it into an Android app, the system threw the error "ould not find org.asyncstorage.shared_storage:storage-android:1.0.0". I tried many solutions, but none worked. I also couldn't find the dependency org.asyncstorage.shared_storage:storage-android:1.0.0 in official repositories such as Maven Central. Finally, I checked the official repository and found that the README states you need to declare the local_repo before building for Android so that this dependency can be resolved correctly.

Test Plan

./gradlew app:assembleDebug | cat and it can build success without import local_repo in users' build.gradle

…ocal_repo in build.gradle in version v3.0.2.
@2Stephen 2Stephen requested review from krizzu and tido64 as code owners March 28, 2026 04:00
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 28, 2026

⚠️ No Changeset found

Latest commit: 279f628

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant