You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've installed this dep in my app and its execution is working fine for both iOS and Android using react-native run ios or react-native run android. However, the .apk generation needed to either share the app or publish it to Play Store is having some intermittent issues.
Why am I saying intermittent? Because this returns a success once, then fails the second time, then you introduce a small change and it runs, then fails again, etc.
Steps to repdroduce
Run:
npm run android
cd android && ./gradlew clean && ./gradlew assembleRelease
App information
react-native info output:
System:
OS: macOS 12.4
CPU: (8) x64 Apple M1
Memory: 586.59 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
Yarn: Not Found
npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm
Watchman: 2022.05.16.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
API Levels: 27, 28, 29, 30, 31, 32
Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.0, 30.0.2, 31.0.0, 32.0.0
System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom, android-31 | Google Play ARM 64 v8a, android-32 | Google APIs ARM 64 v8a, android-32 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7935034
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: ^17.0.2 => 17.0.2
react-native: 0.68.2 => 0.68.2
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
gradle -v output:
------------------------------------------------------------
Gradle 7.3.3
------------------------------------------------------------
Build time: 2021-12-22 12:37:54 UTC
Revision: 6f556c80f945dc54b50e0be633da6c62dbe8dc71
Kotlin: 1.5.31
Groovy: 3.0.9
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 1.8.0_292 (AdoptOpenJDK 25.292-b10)
OS: Mac OS X 10.16 x86_64
I've followed the installation steps and managed to generate the apk a couple of times by adding import com.oguzhnatly.rnimagemanipulator.RNImageManipulatorPackage; to the top of android/app/src/main/java/[...]/MainApplication.java file, avoiding new RNImageManipulatorPackage() in the getPackages() method and avoiding compile project(':react-native-image-manipulator') in the android/app/build.gradle file too. All of this respondend to the need of avoid a list of compile errors.
This has been added to android/settings.gradle as instructed in the docs:
include ':react-native-image-manipulator'
project(':react-native-image-manipulator').projectDir = new File(rootProject.projectDir, '../node_modules/@oguzhnatly/react-native-image-manipulator/android')
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What am I trying to do?
I've installed this dep in my app and its execution is working fine for both iOS and Android using
react-native run ios
orreact-native run android
. However, the.apk
generation needed to either share the app or publish it to Play Store is having some intermittent issues.Why am I saying intermittent? Because this returns a success once, then fails the second time, then you introduce a small change and it runs, then fails again, etc.
Steps to repdroduce
Run:
npm run android
cd android && ./gradlew clean && ./gradlew assembleRelease
App information
react-native info
output:gradle -v
output:My
package.json
's dependencies:I've followed the installation steps and managed to generate the apk a couple of times by adding
import com.oguzhnatly.rnimagemanipulator.RNImageManipulatorPackage;
to the top ofandroid/app/src/main/java/[...]/MainApplication.java
file, avoidingnew RNImageManipulatorPackage()
in thegetPackages()
method and avoidingcompile project(':react-native-image-manipulator')
in theandroid/app/build.gradle
file too. All of this respondend to the need of avoid a list of compile errors.This has been added to
android/settings.gradle
as instructed in the docs:Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions