Comments (7)
@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.
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.
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.
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 :appCould 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.
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.
Closing this issue. Thanks @manishPatwari
from proteus.
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)
- Help Wanted : ProteusInflateException HOT 2
- I'm getting ProteusInflateException HOT 3
- how to pass data and layout in proteus inflater for simple android app? HOT 1
- Issue with boolean parse. HOT 3
- Firebase rest api response cant parse json responses HOT 8
- on setting right , top or down drawable, left drawable also gets set. HOT 2
- cannot inflate json result from plugin converter proteus (please help) HOT 2
- How to create RadioButton, Spinner view? HOT 1
- minSdk 19 from 16 HOT 2
- Recyclerview with different item-layout for each index HOT 2
- ProteusInflateException
- Not able to use Constraint Layout HOT 2
- Multiple button clicks..?? HOT 1
- How does it know that is a resource if is not in the Resource types?, fails inflating the menu HOT 1
- Does it have backward compat support? HOT 1
- Horizontal Orientation in RecyclerView HOT 1
- Horizontal Orientation in RecyclerView HOT 1
- Type needs to be first key in Layout JSON. HOT 1
- Formatting not working HOT 1
- Issue in adding ListView and RecyclerView
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 proteus.