Java 无法解析Ksoap2
我对安卓工作室的说法有异议: 未能解决 ksoap2android:ksoap2android:3.6.1 这是我的身材。格雷德尔:Java 无法解析Ksoap2,java,android,android-gradle-plugin,android-ksoap2,Java,Android,Android Gradle Plugin,Android Ksoap2,我对安卓工作室的说法有异议: 未能解决 ksoap2android:ksoap2android:3.6.1 这是我的身材。格雷德尔: apply plugin: 'com.android.application' android { compileSdkVersion 19 buildToolsVersion '25.0.0' defaultConfig { applicationId "com.example.papiroomdemo.webserv
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "com.example.papiroomdemo.webservicetest"
minSdkVersion 15
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
repositories {
maven { url 'http://ksoap2-android.googlecode.com/svn/m2-repo' }
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.google.code.ksoap2-android:ksoap2-android:3.6.1'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile 'com.hannesdorfmann.smoothprogressbar:library:1.0.0'
compile 'com.github.castorflex.smoothprogressbar:library-circular:1.0.0'
}
错误:(30,13)未能解决:
com.google.code.ksoap2 android:ksoap2 android:3.6.1在文件中显示在项目结构中显示 对话
我认为您在
存储库
部分的url无效。你应该加上
https://oss.sonatype.org/content/repositories/ksoap2-android-releases/
:
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/ksoap2-android-releases/' }
}
此处的更多信息:///在模块gradle中添加这些行
allprojects {
repositories {
google()
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/ksoap2-android-releases/'
}
}
}