Comments (10)
if sdk version is the problem, you can override it in your android/build.gradle
> buildscript
> ext
buildscript {
ext {
LoaderKit_compileSdkVersion = 34
LoaderKit_minSdkVersion = 26
LoaderKit_targetSdkVersion = 34
}
from react-native-loader-kit.
RN 0.73.7, and last version of react-native-loader-kit
from react-native-loader-kit.
maybe this can help you: yamill/react-native-orientation#396 (comment)
from react-native-loader-kit.
Reviewing everything I have already tried it and it worked for me too.
Thanks @maitrungduc1410 @DarkShtir
from react-native-loader-kit.
Same issue
from react-native-loader-kit.
@DarkShtir which version of RN are you using?
from react-native-loader-kit.
hi @GonzaArts @DarkShtir on which command are you guys facing this issue?
Just now I tested with these commands, they're all fine:
npx react-native build-android --mode=release
npm run android -- --mode="release"
My env (MacOS M2):
"react": "18.2.0",
"react-native": "0.74.0",
"react-native-loader-kit": "^2.0.8"
from react-native-loader-kit.
I'm using fastlane to create builds, and under hood fastlane is using ./gradlew assembleRelease -p
command
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-loader-kit/android/build.gradle b/node_modules/react-native-loader-kit/android/build.gradle
index d94248d..fed1ef9 100644
--- a/node_modules/react-native-loader-kit/android/build.gradle
+++ b/node_modules/react-native-loader-kit/android/build.gradle
@@ -18,10 +18,10 @@ def safeExtGet(prop, fallback) {
}
android {
- compileSdkVersion safeExtGet('LoaderKit_compileSdkVersion', 30)
+ compileSdkVersion safeExtGet('LoaderKit_compileSdkVersion', 34)
defaultConfig {
- minSdkVersion safeExtGet('LoaderKit_minSdkVersion', 16)
- targetSdkVersion safeExtGet('LoaderKit_targetSdkVersion', 30)
+ minSdkVersion safeExtGet('LoaderKit_minSdkVersion', 26)
+ targetSdkVersion safeExtGet('LoaderKit_targetSdkVersion', 34)
versionCode 1
versionName "1.0"
Thanks maitrungduc1410 to link
from react-native-loader-kit.
Thanks, this is great solution and it's working!
Maybe be useful add this information to troubleshooting article
from react-native-loader-kit.
Great, I'm gonna add a troubleshoot section in readme
from react-native-loader-kit.
Related Issues (11)
- Adding `style` prop on LoaderKit throws TypeScript error. HOT 1
- SWIFT_VERSION not specified HOT 2
- It fails to run react-native run-android with this dependency installed and doesn't work HOT 9
- Android: Release apk is not assembling on RN 0.69.5. HOT 8
- Could not HEAD 'https://www.jitpack.io/com/github/chenzj-king/AVLoadingIndicatorView/2.1.1/AVLoadingIndicatorView-2.1.1.pom'. Received status code 403 from server: Forbidden HOT 2
- the package "react-native-loader-kit" doesn't seem to be linked HOT 2
- compileDebugJavaWithJavac HOT 3
- Pacman 's eaten dots don't scale with height and width HOT 1
- 'LoaderKit View' is not Fabric compatible yet. HOT 1
- When building Android in React Native 0.73, I get error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-loader-kit.