alibaba / freeline

A super fast build tool for Android, an alternative to Instant Run
https://www.freelinebuild.com/
BSD 3-Clause "New" or "Revised" License
5.48k stars 623 forks source link

运行 python freeline.py报错 #193

Closed permission-denied closed 8 years ago

permission-denied commented 8 years ago

提示如下:

[DEBUG] [dispatcher] command line args: Namespace(all=False, clean=False, cleanB uild=False, debug=False, init=False, version=False) [DEBUG] collecting project info, please wait a while... [DEBUG] [scan_changed_files_command] find D:\android\txpro\txdiao_android\TXFish ing\build.gradle has modification. [DEBUG] final apk not found, need a clean build. [DEBUG] collecting project info, please wait a while... [DEBUG] update apk time path: D:\android\txpro\txdiao_android\TXFishing\build\fr eeline\freeline-assets\apktime [DEBUG] new clean build flag value: 140000 [DEBUG] [task_engine] depth: 1, task: [read_project_info_task] [DEBUG] [task_engine] depth: 1, task: [generate_file_stat_task] [DEBUG] [task_engine] depth: 2, task: [gradle_clean_build_task] [DEBUG] [task_engine] depth: 3, task: [clean_all_cache_task] [DEBUG] [task_engine] depth: 3, task: [install_apk_task] [DEBUG] [task_engine] depth: 4, task: [build_base_resource_task] [DEBUG] [task_engine] depth: 4, task: [generate_project_info_task] [DEBUG] [task_engine] depth: 4, task: [append_file_stat_task] [DEBUG] [read_project_info_task] read_project_info_task start to run after waiti ng 0.0s [DEBUG] [generate_file_stat_task] generate_file_stat_task start to run after wai ting 0.0s [DEBUG] [generate_file_stat_task] save TXFishing module file stat [DEBUG] [generate_file_stat_task] save SmartTabLibrary module file stat [DEBUG] [generate_file_stat_task] save IMKitWithVoIP1 module file stat [DEBUG] [generate_file_stat_task] save ShareSDK module file stat [DEBUG] [generate_file_stat_task] generate_file_stat_task finish in 0.2s [DEBUG] [read_project_info_task] read_project_info_task finish in 9.0s [DEBUG] [gradle_clean_build_task] gradle_clean_build_task start to run after wai ting 9.0s [DEBUG] [gradle_clean_build_task] gradlew.bat assembleDebug --stacktrace -P free lineBuild=true [DEBUG] [gradle_clean_build_task] Gradle build task is running, please wait a mi nute... [DEBUG] [gradle_clean_build_task] gradle_clean_build_task finish in 8.3s [DEBUG] [clean_all_cache_task] clean_all_cache_task start to run after waiting 1 7.2s [DEBUG] [install_apk_task] install_apk_task start to run after waiting 17.2s [DEBUG] [build_base_resource_task] build_base_resource_task start to run after w aiting 17.2s [DEBUG] [generate_project_info_task] generate_project_info_task start to run aft er waiting 17.0s [DEBUG] [append_file_stat_task] append_file_stat_task start to run after waiting 8.3s [DEBUG] [task_engine] task engine occurs exception, engine will exit. [DEBUG] [task_engine] it takes task engine 17.26s to execute tasks. [ERROR] -------------------------------------------------------- [ERROR] Freeline ERROR [ERROR] -------------------------------------------------------- freeline auto add runtime dependencies: 0.7.2 find variant debug start hack process... find default apk path: D:\android\txpro\txdiao_android\TXFishing\build\outputs\a pk\TXFishing-debug.apk Old file C:\Users\Administrator.freeline\cache\359a2d9f63263b71108daa426254850b \project_description.json removed. Save to C:\Users\Administrator.freeline\cache\359a2d9f63263b71108daa426254850b\ project_description.json

BUILD FAILED

Total time: 4.547 secs

FAILURE: Build failed with an exception.

[ERROR] -------------------------------------------------------- [ERROR] build failed with script: gradlew.bat assembleDebug [ERROR] -------------------------------------------------------- [DEBUG] Prepare tasks time: 0.3s [DEBUG] Task engine running time: 17.3s [DEBUG] Total time: 17.5s [DEBUG] --------------------------------------------------------

lomanyong commented 8 years ago

@permission-denied 你们使用的android-gradle的版本是多少呢?是否是2.0以下的?

permission-denied commented 8 years ago

@lomanyong Gradle version 2.2.1 Android plugin version 1.2.3

lomanyong commented 8 years ago

@permission-denied Android plugin version 1.2.3这个版本太低了,Freeline支持的至少得1.3+的...