将ADT的KJFrame框架项目转换到Android Studio后不能编译。。。
Event Log:
22:06:44 Gradle sync started
22:07:02 Gradle sync completed
22:07:03 Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources]
22:07:07 Gradle build finished with 9 error(s) in 4s 179ms
22:15:46 Gradle sync started
22:15:53 Gradle sync completed
22:15:53 Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources]
22:15:54 Gradle build finished with 9 error(s) in 1s 530ms
22:18:55 Gradle sync started
22:18:56 Gradle sync completed
22:18:56 Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources]
22:18:57 Gradle build finished with 9 error(s) in 901ms
22:27:04 Gradle sync started
22:27:04 Gradle sync failed: Unable to delete directory C:\Users\dgmislrh\.gradle\caches\2.4\scripts\build_eqfuls173lhywjnehyxoat9af\ProjectScript\no_buildscript\classes.
Consult IDE log for more details (Help | Show Log)
22:27:43 Gradle sync started
22:27:43 Gradle sync completed
22:27:43 Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources]
22:27:44 Gradle build finished with 9 error(s) in 938ms
22:28:51 Gradle sync started
22:28:52 Gradle sync completed
22:28:52 Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources]
22:28:54 Gradle build finished with 9 error(s) in 1s 319ms
=============
Message Gradle Build:
C:\work\StudioProjects\KJFrame\app\src\main\java\org\kymjs\kjframe\widget\KJSwipeRefreshLayout.java
Error:(19, 33) 错误: 找不到符号
符号: 类 SwipeRefreshLayout
位置: 程序包 android.support.v4.widget
我的build.gradle(Module:app)
apply plugin: 'com.android.library'
android {
compileSdkVersion 19
buildToolsVersion "22.0.1"
defaultConfig {
minSdkVersion 19
targetSdkVersion 19
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:19.0.0'
}
build.gradle(Project:KJFrame)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
}
}
allprojects {
repositories {
jcenter()
}
}
想从ADT转为Studio,苦啊,无从下手。。。