Comments (9)
Newer Version of React Native is Available! | |
---|---|
ℹ️ | You are on a supported minor version, but it looks like there's a newer patch available - 0.72.12. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
from react-native.
Thanks for the reproducer @19abhishek
There are 2 problems in your project:
It should be changed as follows:
-apply plugin: "com.android.application"
+apply plugin: "com.android.library"
That's because you're specifying an Android App there and not a library.
- You're including the same Gradle module twice here:
As you're including the :app
module (with path ./app
), and then you're creating another module called :rnsdk
with path ./app
. So this can't work.
You would have to change the settings.gradle
file as follows:
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
-include ':rnsdk'
-project(':rnsdk').projectDir = new File(rootProject.projectDir, './app')
includeBuild('../node_modules/@react-native/gradle-plugin')
from react-native.
I made the changes but I'm still getting the same issue @cortinico. I have updated the reproducer file as well with those changes.
Getting the below error on running ./gradlew assembleRelease (in android folder)-
Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'.
Could not find com.facebook.react:react-android:.
Required by:
project :app
from react-native.
Sorry I used the wrong symbols on my first suggestion:
You should update the android/app/build.gradle
as follows:
+apply plugin: "com.android.application"
-apply plugin: "com.android.library"
from react-native.
That'll generate a releaseAPK, I wanted to create a .aar file (SDK for android). What changes do I need to make for that? @cortinico
from react-native.
That'll generate a releaseAPK, I wanted to create a .aar file (SDK for android). What changes do I need to make for that? @cortinico
You should be using a template like this one:
https://callstack.github.io/react-native-builder-bob/create
from react-native.
That'll generate a releaseAPK, I wanted to create a .aar file (SDK for android). What changes do I need to make for that? @cortinico
You should be using a template like this one: https://callstack.github.io/react-native-builder-bob/create
Thanks for the reply. Actually I wanted to create a library of an existing React native app which is on 0.72.0 version, was getting the same error there, so was trying it on a Hello world project but faced the same issue there. How can I create a library for this starter hello world project, can you help with that?
from react-native.
How can I create a library for this starter hello world project, can you help with that?
Nope sorry I cannot help you further. Please seek support on StackOverflow or use the template project I linked you
from react-native.
How can I create a library for this starter hello world project, can you help with that?
Nope sorry I cannot help you further. Please seek support on StackOverflow or use the template project I linked you
Okay, thanks.
from react-native.
Related Issues (20)
- Cannot find EventEmitter for receivedTouches EventName[topTouchMove, topTouchEnd] on native library HOT 5
- RCTNativeAnimatedNodesManager.mm props is not a node HOT 1
- Unexpected scroll behaviors when using FlatList HOT 7
- When I integration react native with Existing Android Apps,I got a autolinking question. HOT 2
- Symbol not found: (_JSGlobalContextSetInspectable) HOT 3
- The directory ****/ios contains 2 projects HOT 3
- textInput props textAlign will cause long text to be cut off after the hyphen when out of focus and focus again
- close the first modal with animation, then open the second modal immediately, the second modal can't be showed HOT 2
- UI updates made from layout effect are flushed in separate UI transaction HOT 4
- Blob constructor is not spec compliant HOT 1
- [!] CocoaPods could not find compatible versions for pod "React-RCTAnimation": In Podfile: React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) HOT 3
- Build error in 0.73.6 HOT 3
- Fatal error "available height is undefined" when editing textinput the app closes HOT 3
- Inverted Flatlist not working when scrolled HOT 5
- `TextInput` cursor lags behind text when component is controlled if Auto-Correction and Predictive Text are enabled HOT 4
- RNSVG same register view HOT 4
- Firestore encountered gRPC-C++ error while upgrading Firebase module to 19.2(iOS) HOT 3
- 'selection' prop is not working in TextInput on Android after React Native upgrade to v0.73 HOT 2
- Project with React Native SVG fails to build on 0.74.0-rc.9 with new architecture HOT 7
- XMLHttpRequest Object throws occasional "Network Error" in TestFlight Production Environment HOT 2
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.