Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Build Issue #244

Open
SolankiYogesh opened this issue Mar 27, 2024 · 1 comment
Open

Android Build Issue #244

SolankiYogesh opened this issue Mar 27, 2024 · 1 comment

Comments

@SolankiYogesh
Copy link

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch @terrylinla/[email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/@terrylinla/react-native-sketch-canvas/android/build.gradle b/node_modules/@terrylinla/react-native-sketch-canvas/android/build.gradle
index 31e44f2..8b192f5 100644
--- a/node_modules/@terrylinla/react-native-sketch-canvas/android/build.gradle
+++ b/node_modules/@terrylinla/react-native-sketch-canvas/android/build.gradle
@@ -28,5 +28,5 @@ android {
 }
 
 dependencies {
-    provided "com.facebook.react:react-native:+"
+    api "com.facebook.react:react-native:+"
 }

This issue body was partially generated by patch-package.

@10wen
Copy link

10wen commented Nov 8, 2024

嗨!👋

首先,感谢您对这个项目的工作!🙂

今天我使用patch-package来修补@terrylinla/[email protected]我正在做的项目。

以下是解决我的问题的差异:

diff --git a/node_modules/@terrylinla/react-native-sketch-canvas/android/build.gradle b/node_modules/@terrylinla/react-native-sketch-canvas/android/build.gradle
index 31e44f2..8b192f5 100644
--- a/node_modules/@terrylinla/react-native-sketch-canvas/android/build.gradle
+++ b/node_modules/@terrylinla/react-native-sketch-canvas/android/build.gradle
@@ -28,5 +28,5 @@ android {
 }
 
 dependencies {
-    provided "com.facebook.react:react-native:+"
+    api "com.facebook.react:react-native:+"
 }

该问题主体部分由 patch-package 生成

That doesn't solve my problem:

  • What went wrong:
    Execution failed for task ':@terrylinla_react-native-sketch-canvas:generateReleaseRFile'.

Could not resolve all files for configuration ':@terrylinla_react-native-sketch-canvas:releaseRuntimeClasspath'.
Could not find react-native-0.71.0-rc.0-release.aar (com.facebook.react:react-native:0.71.0-rc.0).
Searched in the following locations:
https://jcenter.bintray.com/com/facebook/react/react-native/0.71.0-rc.0/react-native-0.71.0-rc.0-release.aar

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

No branches or pull requests

2 participants