simple-mvp icon indicating copy to clipboard operation
simple-mvp copied to clipboard

Gradle error : Could not find property "BINRAY_USER

Open amuyu opened this issue 8 years ago • 1 comments

I was downloading source. I open project.

Error:(64, 0) Could not find property 'BINRAY_USER' on com.jfrog.bintray.gradle.BintrayExtension_Decorated@65b72517. Open File so, i can't build project. How I build project?

amuyu avatar Sep 01 '16 01:09 amuyu

Hey @amuyu You can surely build the project, however I didn't disclosed the Binray information of the package, like its secred key and id, those things are related to the project stored on binray.com on com.tinmegali.mvp:mvp:0.0.7

You have three options:

  1. Remove all gradle script related to binray.
  2. Create fake data for all missing gradle properties. It'll work correctly, considering that you wont try to upload the build to binray.com
  3. Provide real data to supply the missing information.

I'm providing a code for mvp.gradle with the parts related to binray removed. This should work.

PS: Thanks to your tip I'll replace the mvp.gradle on master version of the repo for another one without the binray code.

apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.neenbedankt.android-apt'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    // apt command comes from the android-apt plugin
    apt 'com.google.dagger:dagger-compiler:2.0.2'
    compile 'com.google.dagger:dagger:2.0.2'
    provided 'org.glassfish:javax.annotation:10.0-b28'

    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:23.2.0'
    compile 'com.android.support:design:23.2.0'

    // Unit testing dependencies
    testCompile 'junit:junit:4.12'

    // Set this dependency if you want to use Mockito
    testCompile 'org.mockito:mockito-core:1.10.19'

    // Set this dependency if you want to use Hamcrest matching
    testCompile 'org.hamcrest:hamcrest-library:1.1'

    testCompile "org.robolectric:robolectric:3.0"
}

tinmegali avatar Sep 01 '16 15:09 tinmegali