Giter VIP home page Giter VIP logo

Comments (6)

dineshmm23 avatar dineshmm23 commented on May 30, 2024 3

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.

cesardeazevedo avatar cesardeazevedo commented on May 30, 2024

Hi, have you tried to run the example project?
Also, can you post your build.gradle?

from react-native-bottom-sheet-behavior.

aryalprakash avatar aryalprakash commented on May 30, 2024

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.

ntgussoni avatar ntgussoni commented on May 30, 2024

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.

ntgussoni avatar ntgussoni commented on May 30, 2024

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.

okb1100 avatar okb1100 commented on May 30, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.