Comments (6)
Problem is with com.android.support:design
not trageting to latest.. i hope this can be fixed currently by
adding this line to ./android/build.gradle(module)
not app
//Ensure that all dependencies use the same version of the Android Support library
subprojects {
subproject ->
afterEvaluate{
if((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
}
}
}
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex')) {
details.useVersion "${rootProject.ext.supportLibVersion}"
}
}
}
}
from react-native-bottom-sheet-behavior.
Hi, have you tried to run the example project?
Also, can you post your build.gradle?
from react-native-bottom-sheet-behavior.
My build.gradle
`// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "27.0.3"
minSdkVersion = 16
compileSdkVersion = 27
targetSdkVersion = 26
supportLibVersion = "27.1.1"
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.google.gms:google-services:4.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenLocal()
maven { url "https://maven.google.com" }
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven { url "https://jitpack.io" }
jcenter()
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.4'
distributionUrl = distributionUrl.replace("bin", "all")
}
`
from react-native-bottom-sheet-behavior.
Im having the same issue, the example app works perfectly.
Im using react-native-firebase-starter with a fresh install, maybe this is a reproduceable way for you. Im sorry I cannot provide more information, this is my very first mobile app
from react-native-bottom-sheet-behavior.
This is part of the stacktrace.
com.android.build.api.transform.TransformException: Error while generating the main dex list.
> Error while generating the main dex list.
> com.android.tools.r8.errors.CompilationError: Program type already present: android.support.design.widget.CoordinatorLayout$DefaultBehavior
> Program type already present: android.support.design.widget.CoordinatorLayout$DefaultBehavior
from react-native-bottom-sheet-behavior.
@ntgussoni and anyone who's having the same error;
I had the same error and I got my project to compile by adding
implementation 'com.android.support:design:27.1.0'
inside app/build.gradle
dependencies.
from react-native-bottom-sheet-behavior.
Related Issues (20)
- Null pointer exception shouldInterceptTouchEvent HOT 3
- Pass touch events to underlying view when BackdropBottomSheet is not defined while at anchor point
- Could not find a declaration file for module 'react-native-bottom-sheet-behavior' HOT 1
- requireNativeComponent: "BSBBottomSheet-BehaviorAndroid" was not found in the UIManager. HOT 3
- UIManager['BSBottomSheetBehaviourAndroid'] is no longer supported . Use UIManager.ViewManagerConfig('BSBottomSheetBehaviourAndroid') instead warning HOT 6
- Crashes when dragging if keyboard is open
- Update to latest library support to latest and change compile to implementation HOT 1
- Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED HOT 3
- Bottom container height without anchor point HOT 9
- collected in excellent-RN-libs
- Can't Build React-Native App HOT 1
- _reactNative.UIManager.getViewManagerConfig('BSBBottomSheetBehaviorAndroid') HOT 1
- Package android.support.design.widget does not exist HOT 1
- Task :react-native-bottom-sheet-behavior:compileDebugJavaWithJavac FAILED HOT 1
- Q: Additional FloatingActionButton, anchored, above BottomSheet HOT 1
- BottomSheetBehavior ref is null
- pull up to show more,pull down to hide
- Thank you for making this
- Crash when <BottomSheetBehavior /> is hidden within <CoordinatorLayout />
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-bottom-sheet-behavior.