Code Monkey home page Code Monkey logo

Comments (7)

manishPatwari avatar manishPatwari commented on May 30, 2024 3

@passiondroid Change the dependencies to :

    implementation 'com.github.flipkart-incubator.proteus:proteus-core:5.0.0-rc12@aar'
    implementation 'com.github.flipkart-incubator.proteus:gson-adapter:5.0.0-rc12@aar'

from proteus.

passiondroid avatar passiondroid commented on May 30, 2024

Below app level build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.app.sample.proteus"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.github.flipkart-incubator:proteus-core:5.0.0-rc11@aar'
    implementation 'com.github.flipkart-incubator:gson-adapter:5.0.0-rc11@aar'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}

from proteus.

adityasharat avatar adityasharat commented on May 30, 2024

The library hasn't been migrated to android studio 3.0 yet. You are more than welcome to pick this up and raise a PR else we will pick this up soon.

from proteus.

 avatar commented on May 30, 2024

Detailed error message from Gradle. Looks like an authorization issue on jitpacks.

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.github.flipkart-incubator:proteus-core:5.0.0-rc12.

Could not resolve com.github.flipkart-incubator:proteus-core:5.0.0-rc12.
Required by:
project :app

Could not resolve com.github.flipkart-incubator:proteus-core:5.0.0-rc12.
> Could not get resource 'https://jitpack.io/com/github/flipkart-incubator/proteus-core/5.0.0-rc12/proteus-core-5.0.0-rc12.pom'.
> Could not GET 'https://jitpack.io/com/github/flipkart-incubator/proteus-core/5.0.0-rc12/proteus-core-5.0.0-rc12.pom'. Received status code 401 from server: Unauthorized

from proteus.

azri92 avatar azri92 commented on May 30, 2024

Thanks @manishPatwari! I tried the following first (from the readme):

        compile 'com.github.flipkart-incubator:proteus-core:5.0.0-rc12@aar'
        compile 'com.github.flipkart-incubator:gson-adapter:5.0.0-rc12@aar'

which didn't work. Then I tried yours and it successfully build.

from proteus.

adityasharat avatar adityasharat commented on May 30, 2024

Closing this issue. Thanks @manishPatwari

from proteus.

sisogit avatar sisogit commented on May 30, 2024

Am getting the below -
Error: Program type already present: com.flipkart.android.proteus.R

below is the dependencies from the app/build.gradle

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.github.flipkart-incubator.proteus:proteus-core:5.0.0-rc12'
    implementation 'com.github.flipkart-incubator.proteus:gson-adapter:5.0.0-rc12'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

project/build.gradle

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
        google()
        jcenter()
    }
}

Detailed error -
gist link - https://gist.github.com/sisogit/055c93ddc08b1e24c6ae0e4c6f1129f0
SO link - https://stackoverflow.com/questions/53828150/error-while-including-the-proteus-library-android-support-v7-appcompat-rlayo

from proteus.

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.