java


Receiving error with support-v7:25.1.0 in gradle on compile


Hy,
I am trying to work with a source code I have received lately, but unfortunately I am not able to compile it due to flagged dependencies that are not working.
This the graddle that is showing the problem:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
}
}
allprojects {
repositories {
mavenCentral()
}
}
project(':calendar') {
apply plugin: 'android-library'
android {
compileSdkVersion 25
buildToolsVersion '25.0.1'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
lintOptions {
abortOnError false
}
}
}
project(':colorpicker') {
apply plugin: 'android-library'
android {
compileSdkVersion 25
buildToolsVersion '25.0.1'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
}
}
project(':datetimepicker') {
apply plugin: 'android-library'
dependencies {
compile 'com.android.support:support-v4:25.1.0'
}
android {
compileSdkVersion 25
buildToolsVersion '25.0.1'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
lintOptions {
abortOnError false
}
}
}
project(':timezonepicker') {
apply plugin: 'android-library'
dependencies {
compile 'com.android.support:support-v4:25.1.0'
}
android {
compileSdkVersion 25
buildToolsVersion '25.0.1'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
lintOptions {
abortOnError false
}
}
}
project(':ex:chips') {
apply plugin: 'android-library'
android {
compileSdkVersion 25
buildToolsVersion '25.0.1'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
lintOptions {
abortOnError false
}
}
}
apply plugin: 'com.android.library'
dependencies {
compile 'com.android.support:support-v7:25.1.0'
compile 'com.android.support:design:25.1.0'
compile project(':calendar')
compile project(':colorpicker')
compile project(':datetimepicker')
compile project(':timezonepicker')
compile project(':ex:chips')
}
android {
compileSdkVersion 25
buildToolsVersion '25.0.1'
defaultConfig {
minSdkVersion 18
targetSdkVersion 25
}
useLibrary 'org.apache.http.legacy'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src', 'external/ex/common/java'] // NOTE: this includes external/ex/common/java!
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
I am currently getting the errors shown in the pictures attached:
Knowing that I have updated the Android platform SDK to 25 and Android Support Repository and Google Repository as suggested in other posts.
If I have missed any needed information kindly let me know.
Your help and suggestions would be highly appreciated.
you should upgrade the gradle dependencies to
compile 'com.android.support:support-v4:25.3.1'
and add this in android part
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"

Related Links

Deferred Result in Spring MVC returning incorrect response
Using google static maps - JFrame or Javascript
How to put a button texture on another texture?
In Java, can you use negative one with substring? [closed]
Resizing image with libgdx
Libgdx serialization
ArrayOutOfBounds exception when trying to parse Double to String
Can methods be referred to as functions in comments [closed]
Positioning button on the TableActivity from the code
Infinispan Clustering applications on 2 servers
How to use a random array number and a timer in java?
How can I write a method to intersperse two arrays of different lengths?
Returning null values in DAO file
Using foreach loop in JSF
How to send message using SMACK API and GTALK?
LDAP search bootstrap example

Categories

HOME
cakephp
sendgrid
xamarin
google-chrome-extension
multithreading
wso2-am
image
clips
tizen
heroku
reserved
onedrive
webstorm
setup-deployment
c#-2.0
disassembler
enterprise-library-5
convolution
constraint-programming
nano-server
rascal
quickbooks
correlation
remote-access
orchardcms
dynamics-crm-online
django-simple-history
opentracing
progressive-web-apps
propel
lldb
introduction
plunker
p-value
opennlp
xpages-ssjs
buildbot
kannel
linkerd
atlassian-crucible
tasklet
.net-4.0
ioio
siesta-swift
karaf
catch-all
rotational-matrices
swisscomdev
swift3.0.2
uft-api
squib
graphenedb
email-templates
gzipstream
ionicons
svmlight
statsd
composite-key
minimization
removechild
underscore.js-templating
packagist
livequery
xpath-1.0
uid
pervasive-sql
fouc
dukescript
sailfish-os
dundas
umbraco6
javax.mail
csquery
c3
gulp-less
onactivityresult
phpthumb
industrial
access-rights
tidy
gridcontrol
mylyn
cassini-dev
libstdc++
propertyeditor
viewswitcher
hosts-file
pendrive
nsobject
pydot
joyent
horizontal-accordion
actionview
oncheckedchanged
infrastructure
suppress
jquery-ui-droppable
mirah
fixed-width
audio-capture
data-driven
mtj
nerddinner
grid-system
caching-application-block

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App