将ADT的KJFrame框架项目转换到Android Studio后不能编译。。。

OK_boom 2015-12-23 10:29:50
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,苦啊,无从下手。。。
...全文
163 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
OK_boom 2015-12-24
  • 打赏
  • 举报
回复
改了android sdk的版本也不行。

80,356

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧