compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7' not resolve -
this code of build.gradle(moudule app)
apply plugin: 'com.android.application' android { compilesdkversion 25 buildtoolsversion "25.0.3" defaultconfig { applicationid "com.example.hn.myapplication" minsdkversion 14 targetsdkversion 25 versioncode 1 versionname "1.0" testinstrumentationrunner "android.support.test.runner.androidjunitrunner" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) androidtestcompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) //compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.android.support:appcompat-v7:25.+' compile 'com.android.support:recyclerview-v7:25.+' compile 'com.android.support:support-v4:25.+' compile 'com.android.support:design:25.+' //compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7' compile 'com.android.support.constraint:constraint-layout:1.0.0' testcompile 'junit:junit:4.12' }
and sdk tools. enter image description here
i try compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'
, compile 'com.android.support.constraint:constraint-layout:1.0.0'
, compile 'com.android.support.constraint:constraint-layout:1.+'
not working. , error failed resolve: com.android.support.constraint:constraint-layout:1
solve problem?
when use compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7
error done: install artifact , sync project
Comments
Post a Comment