{"action":"closed","issue":{"url":"https://api.github.com/repos/prscX/react-native-bottom-action-sheet/issues/25","repository_url":"https://api.github.com/repos/prscX/react-native-bottom-action-sheet","labels_url":"https://api.github.com/repos/prscX/react-native-bottom-action-sheet/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/prscX/react-native-bottom-action-sheet/issues/25/comments","events_url":"https://api.github.com/repos/prscX/react-native-bottom-action-sheet/issues/25/events","html_url":"https://github.com/prscX/react-native-bottom-action-sheet/issues/25","id":346977047,"node_id":"MDU6SXNzdWUzNDY5NzcwNDc=","number":25,"title":"Unable to build for Android","user":{"login":"bakgat","id":2185099,"node_id":"MDQ6VXNlcjIxODUwOTk=","avatar_url":"https://avatars1.githubusercontent.com/u/2185099?v=4","gravatar_id":"","url":"https://api.github.com/users/bakgat","html_url":"https://github.com/bakgat","followers_url":"https://api.github.com/users/bakgat/followers","following_url":"https://api.github.com/users/bakgat/following{/other_user}","gists_url":"https://api.github.com/users/bakgat/gists{/gist_id}","starred_url":"https://api.github.com/users/bakgat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bakgat/subscriptions","organizations_url":"https://api.github.com/users/bakgat/orgs","repos_url":"https://api.github.com/users/bakgat/repos","events_url":"https://api.github.com/users/bakgat/events{/privacy}","received_events_url":"https://api.github.com/users/bakgat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-02T11:48:11Z","updated_at":"2018-08-02T12:03:20Z","closed_at":"2018-08-02T12:03:20Z","author_association":"NONE","body":"When I try to build for android I get this error \r\n\r\n**```Unable to find a matching configuration of project :react-native-bottom-action-sheet: None of the consumable configurations have attributes.```**\r\n\r\nAny ideas?\r\n\r\nThese are my settings:\r\n\r\nIn android/build.gradle\r\n\r\n```\r\nbuildscript {\r\n    repositories {\r\n        jcenter()\r\n        maven {\r\n            url 'https://maven.google.com/'\r\n            name 'Google'\r\n        }\r\n        google()\r\n    }\r\n    dependencies {\r\n        classpath 'com.android.tools.build:gradle:3.1.3'\r\n\r\n        // NOTE: Do not place your application dependencies here; they belong\r\n        // in the individual module build.gradle files\r\n    }\r\n}\r\n\r\nallprojects {\r\n    repositories {\r\n        mavenLocal()\r\n        jcenter()\r\n        maven {\r\n            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm\r\n            url \"$rootDir/../node_modules/react-native/android\"\r\n        }\r\n        // Google now hosts their latest API dependencies on their own maven  server.  \r\n        // React Native will eventually add this to their app template.\r\n        maven { url 'https://maven.google.com/' }\r\n        maven {\r\n            url \"$rootDir/../node_modules/react-native-background-geolocation/android/libs\"\r\n        }\r\n        maven {\r\n            url \"$rootDir/../node_modules/react-native-background-fetch/android/libs\"\r\n        }\r\n    }\r\n}\r\n\r\next {\r\n    buildToolsVersion = \"27.0.3\"\r\n    minSdkVersion = 16\r\n    compileSdkVersion = 27\r\n    targetSdkVersion = 27\r\n    supportLibVersion = \"27.0.3\"\r\n    googlePlayServicesVersion = \"11.8.0\"\r\n    androidMapsUtilsVersion = \"0.5+\"\r\n}\r\n```\r\n\r\nIn android/settings.gradle:\r\n```\r\nrootProject.name = 'wandelsport'\r\ninclude ':react-native-maps'\r\nproject(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')\r\ninclude ':react-native-background-fetch'\r\nproject(':react-native-background-fetch').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-background-fetch/android')\r\ninclude ':react-native-background-geolocation'\r\nproject(':react-native-background-geolocation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-background-geolocation/android')\r\ninclude ':react-native-vector-icons'\r\nproject(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')\r\ninclude ':react-native-bottom-action-sheet'\r\nproject(':react-native-bottom-action-sheet').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-bottom-action-sheet/android')\r\n\r\ninclude ':app'\r\n```\r\n\r\nAnd in android/app/build.gradle\r\n\r\n```\r\n\r\nandroid {\r\n    compileSdkVersion rootProject.ext.compileSdkVersion\r\n    buildToolsVersion rootProject.ext.buildToolsVersion\r\n\r\n    defaultConfig {\r\n        applicationId \"com.wandelsport\"\r\n        minSdkVersion rootProject.ext.minSdkVersion\r\n        targetSdkVersion rootProject.ext.targetSdkVersion\r\n        versionCode 1\r\n        versionName \"1.0\"\r\n        ndk {\r\n            abiFilters \"armeabi-v7a\", \"x86\"\r\n        }\r\n    }\r\n    splits {\r\n        abi {\r\n            reset()\r\n            enable enableSeparateBuildPerCPUArchitecture\r\n            universalApk false  // If true, also generate a universal APK\r\n            include \"armeabi-v7a\", \"x86\"\r\n        }\r\n    }\r\n    buildTypes {\r\n        release {\r\n            minifyEnabled enableProguardInReleaseBuilds\r\n            proguardFiles getDefaultProguardFile(\"proguard-android.txt\"), \"proguard-rules.pro\"\r\n        }\r\n    }\r\n    // applicationVariants are e.g. debug, release\r\n    applicationVariants.all { variant ->\r\n        variant.outputs.each { output ->\r\n            // For each separate APK per architecture, set a unique version code as described here:\r\n            // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits\r\n            def versionCodes = [\"armeabi-v7a\":1, \"x86\":2]\r\n            def abi = output.getFilter(OutputFile.ABI)\r\n            if (abi != null) {  // null for the universal-debug, universal-release variants\r\n                output.versionCodeOverride =\r\n                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode\r\n            }\r\n        }\r\n    }\r\n}\r\n\r\nallprojects {\r\n    repositories {\r\n        maven { url 'https://jitpack.io' }\r\n    }\r\n}\r\n\r\ndependencies {\r\n    compile project(':react-native-maps')\r\n    compile project(':react-native-background-fetch')\r\n    compile project(':react-native-background-geolocation')\r\n    compile project(':react-native-vector-icons')\r\n    compile project(':react-native-bottom-action-sheet')\r\n    compile fileTree(dir: \"libs\", include: [\"*.jar\"])\r\n    compile \"com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}\"\r\n    compile \"com.facebook.react:react-native:+\"  // From node_modules\r\n}\r\n\r\n// Run this once to be able to run the application with BUCK\r\n// puts all compile dependencies into folder libs for BUCK to use\r\ntask copyDownloadableDepsToLibs(type: Copy) {\r\n    from configurations.compile\r\n    into 'libs'\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"bakgat"}}