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

Recursion clarification
encountered “org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject”
How does finish() work in OnClick event?
Error while trying to read a file
Multi-dimensional array bug
Solving an issue with int + string
Android preview image crop helloyako:imagecropview
How to connect string with a object method?
Convert gradle to pom.xml [duplicate]
How static method inheritance and static variable inheritance differs?
How do I execute code in an activity when a pop up menu is closed in Android
Commit failed silently with Spring JpaTransactionManager
WebDriver Java class to run on Safari 10 on El Capitan
Preceeding almost every call, we get a pretty useless call that comes in as a separate transaction SELECT CURRENT SQLID FROM SYSIBM.SYSDUMMY1
Should you save an argument to an instance variable when it's going to be passed through multiple methods?
run a jarfile in a different machine from an sqlserver/issue a terminal command from an sqlserver to another windows machine

Categories

HOME
ibm-bluemix
amazon-ec2
openstack
view
vmware
jira
razor
ckeditor
maude-system
windows-10-universal
google-cloud-spanner
spring-tool-suite
ibm-odm
after-effects
highlight.js
apache-metamodel
nas
amazonsellercentral
kryo
extjs5
devops
firebase-crash-reporting
crosstab
apache-commons-io
libuv
fabric8
directx-10
exuberant-ctags
catch-all
caret
io-redirection
serve
swisscomdev
x11-forwarding
abstract-class
uft-api
particles.js
unoconv
ensembles
scorm
avconv
chain-builder
sage-one
veracode
fancybox-2
mu
diagnostics
knpmenubundle
dynamics-sl
root-framework
parallel-data-warehouse
abcpdf9
android-fonts
flash-cs5
ipconfig
javax.sound.midi
teamcity-8.0
cannon.js
comobject
feedback
processmodel
fluid-dynamics
sortedlist
mdt
javafx-webengine
id3v2
xojo
ceil
htmlcleaner
seaside
srs
uv-mapping
dexterity
coverflow
qt-faststart
itmstransporter
datawindow
regsvr32
nsdatecomponents
stage
external-accessory
coercion
xdomainrequest
horizontal-accordion
yui-datatable
asp.net-mvc-areas
filtered-index
rescale
simpletest
wsdl.exe
windows-live-messenger

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