dependency issue in android 3.1.3 - android

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
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'
implementation 'com.android.support:recyclerview-v7:28.0.0-rc01'
implementation 'com.android.support:design:28.0.0-rc01'been
}
I have error with regards to dependency in Android studio 3.1.3 for appcompat-v7:28.0.0-rc01 and even for rc02 similarly for com.android.support.constraint:constraint-layout:1.1.2 and 1.1.3 layout. how can I solve it?
dependency issues
build description
app file for build

Try using a lower version of appcompat like this:
implementation 'com.android.support:appcompat-v7:27.1.1'
Also remember to change sdkVersion to 27

I have these Dependencies so you can use any if you want and make sure to turn off the Offline Work in the Settings->Gradle to get it working.
I was searching for these errors when i came through that by disabling the Offline Work in Settings->Gradle you can get it sync without any errors.
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:design:28.0.0-rc01'
testImplementation 'junit:junit:4.12'
// google play services
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
Regards

Related

Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy- unable to resolve this issue

I am trying to implement crashlitics in my android app but the problem is whenever i am running the app i am getting above error .kindly help me to get it resolved .
i also added multidex enabled true and i am using following below dependencies .
plz let me know the issue .
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-media-compat:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'me.dm7.barcodescanner:zxing:1.9.8'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
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'
implementation 'com.github.johnkil.android-robototextview:robototextview:4.0.0'
implementation 'com.google.android.gms:play-services-ads:17.1.1'
// Check for v11.4.2 or higher
implementation 'com.google.firebase:firebase-core:17.1.0'
// (Recommended) Add Analytics
implementation 'com.google.firebase:firebase-analytics:17.1.0'
// Add dependency
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'

Program type already present: com.google.android.gms.internal.measurement.zzst"

I was trying to upgrade my android compile and target version to 27 . But the dependencies always had issue . Currently the added dependencies looks like this but still some problem persists .
the dependencies in my gradle file looks like this.
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.google.android.gms:play-services-ads:17.1.3'
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'
implementation 'org.jsoup:jsoup:1.10.3'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation'com.google.firebase:firebase-config:16.1.0'
I tried modifying the gradle dependencies but that isnt helping.
I want to upgrade the app gradle to version 27 but then still the problem persists.
Please help!

Why do I get - Failed to resolve com.squareup.retrofit2: retrofit:2.3.0

Here is my code, I am follwing a tutorial on making a login for my app but when I got to this stage I get errors.
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
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'
implementation 'com.sqaureup.retrofit2:retrofit:2.3.0'
implementation 'com.sqaureup.retrofit2:converter-gson:2.3.0'
}
Any ideas?
The spelling of square word is wrong, so change it to this:
implementation 'com.squareup.retrofit2:retrofit:2.4.0'

Program type already present: org.apache.commons.codec.BinaryDecoder

I am using some .jar files as Vuforia and apache for my application. When I compile the application,
I face with Program type already present: org.apache.commons.codec.BinaryDecoder and I do not know to fix it. I searched many times but could not found same example with me.
This is my dependencies:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:support-annotations:26.1.0'
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'
implementation 'com.android.support:design:26.1.0'
implementation files('src/main/java/Vuforia.jar')
implementation files('libs/mail.jar')
implementation files('libs/additionnal.jar')
implementation files('libs/activation.jar')
implementation files('libs/commons-io-2.6.jar')
implementation files('libs/commons-io-2.6-javadoc.jar')
implementation files('libs/commons-io-2.6-sources.jar')
implementation files('libs/commons-io-2.6-test-sources.jar')
implementation files('libs/commons-io-2.6-tests.jar')
implementation files('libs/commons-codec-1.11-javadoc.jar')
implementation files('libs/commons-codec-1.11-sources.jar')
implementation files('libs/commons-codec-1.11-test-sources.jar')
implementation files('libs/commons-codec-1.11-tests.jar')
implementation files('libs/commons-codec-1.11.jar')
implementation 'org.mnode.ical4j:ical4j:1.0.5'
implementation 'com.android.support:multidex:1.0.3'
}
Can you guys help me to fix problem?
Thank you
I experience the same error. I was using a jar which included:
implementation files('libs/commons-io-2.6.jar')
And in my app I too had included:
implementation files('libs/commons-io-2.6.jar')
So all I had to do was to remove that line from my app and not include the commons-io-2.6.jar file in my libs folder.
change:
implementation 'com.android.support:appcompat-v7:26.0.0'
to:
implementation 'com.android.support:appcompat-v7:26.1.0'
it might help

Failed to resolve: com.microsoft.projectoxford:emotion:2.0.40

I am trying to use microsoft.projectoxford:emotion in my Android App and when I try to add dependency 'com.microsoft.projectoxford:emotion:2.0.40' in my build.gradle in shows the subject error.
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
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'
implementation 'com.microsoft.projectoxford:emotion:2.0.40'
}

Categories

Resources