We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gradle配置是4.1,AS版本是3.0.1 代码中改动如下: 主项目的build.gradle中dependence添加classpath 'com.antfortune.freeline:gradle:0.8.8' app的build.gradle中添加apply plugin: 'com.antfortune.freeline' 以及testCompile 'junit:junit:4.12' debugCompile 'com.antfortune.freeline:runtime:0.8.8' releaseCompile 'com.antfortune.freeline:runtime-no-op:0.8.8' testCompile 'com.antfortune.freeline:runtime-no-op:0.8.8' initFreeline后项目中出现了Freeline和Freeline-core文件夹 工具栏出现Freeline图标按键
但是运行Freeline后出现以下报错: python freeline.py [DEBUG] [dispatcher] command line args: Namespace(all=False, clean=False, cleanBuild=False, debug=False, version=False, wait=False) [DEBUG] [dispatcher] *** Android Gradle Plugin Version: 3.0.1 [DEBUG] [dispatcher] *** Freeline Gradle Plugin Version: 0.8.8 [DEBUG] [dispatcher] *** Freeline Python Version: v0.8.8 [DEBUG] final apk not found, need a clean build. [DEBUG] collecting project info, please wait a while... [DEBUG] update apk time path: C:\Users\sunx\AndroidStudioProjects\DropPopMenu-master\app\build\freeline\freeline-assets\apktime [DEBUG] new clean build flag value: 955000 [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: [generate_apt_files_task] [DEBUG] [task_engine] depth: 4, task: [append_file_stat_task] [DEBUG] [read_project_info_task] read_project_info_task start to run after waiting 0.0s [DEBUG] [generate_file_stat_task] generate_file_stat_task start to run after waiting 0.0s [DEBUG] [generate_file_stat_task] save app module file stat [DEBUG] [generate_file_stat_task] generate_file_stat_task finish in 0.0s [DEBUG] [read_project_info_task] read_project_info_task finish in 44.1s [DEBUG] [gradle_clean_build_task] gradle_clean_build_task start to run after waiting 44.1s [DEBUG] [clean_all_cache_task] clean_all_cache_task start to run after waiting 44.1s [DEBUG] [generate_project_info_task] generate_project_info_task start to run after waiting 44.1s [DEBUG] [generate_apt_files_task] generate_apt_files_task start to run after waiting 0.0s [DEBUG] [build_base_resource_task] build_base_resource_task start to run after waiting 44.1s [DEBUG] [install_apk_task] install_apk_task start to run after waiting 44.1s [DEBUG] [append_file_stat_task] append_file_stat_task start to run after waiting 0.0s [DEBUG] [task_engine] task engine occurs exception, engine will exit. [DEBUG] [task_engine] it takes task engine 44.15s to execute tasks. [ERROR] -------------------------------------------------------- [ERROR] Freeline ERROR [ERROR] --------------------------------------------------------
FAILURE: Build failed with an exception.
Could not resolve all files for configuration ':classpath'. Could not resolve com.android.tools.build:gradle:3.0.1. Required by: project : > Could not resolve com.android.tools.build:gradle:3.0.1. > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'. > Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/52.43.166.206, jcenter.bintray.com/52.33.250.192] failed: Connection timed out: connect Could not resolve com.android.tools.build:gradle:3.0.1. Required by: project : > com.antfortune.freeline:gradle:0.8.8 > Could not resolve com.android.tools.build:gradle:3.0.1. > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'. > Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/52.43.166.206, jcenter.bintray.com/52.33.250.192] failed: Connection timed out: connect
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 43s
[ERROR] -------------------------------------------------------- [ERROR] freeline failed when read project info with script: gradlew.bat -q checkBeforeCleanBuild [ERROR] -------------------------------------------------------- [DEBUG] Prepare tasks time: 0.2s [DEBUG] Task engine running time: 44.2s [DEBUG] Total time: 44.3s [DEBUG] --------------------------------------------------------
但是在Android Studio文件夹中我找到了gradle-3.0.1.pom文件。 求问,有没有人遇到相似问题,怎么解决的?
The text was updated successfully, but these errors were encountered:
你这是缺少Google仓库,gradle plugin3.0+已经不再从jcenter下载了,所以需要设置google仓库
Sorry, something went wrong.
No branches or pull requests
gradle配置是4.1,AS版本是3.0.1
代码中改动如下:
主项目的build.gradle中dependence添加classpath 'com.antfortune.freeline:gradle:0.8.8'
app的build.gradle中添加apply plugin: 'com.antfortune.freeline'
以及testCompile 'junit:junit:4.12'
debugCompile 'com.antfortune.freeline:runtime:0.8.8'
releaseCompile 'com.antfortune.freeline:runtime-no-op:0.8.8'
testCompile 'com.antfortune.freeline:runtime-no-op:0.8.8'
initFreeline后项目中出现了Freeline和Freeline-core文件夹
工具栏出现Freeline图标按键
但是运行Freeline后出现以下报错:
python freeline.py
[DEBUG] [dispatcher] command line args: Namespace(all=False, clean=False, cleanBuild=False, debug=False, version=False, wait=False)
[DEBUG] [dispatcher] *** Android Gradle Plugin Version: 3.0.1
[DEBUG] [dispatcher] *** Freeline Gradle Plugin Version: 0.8.8
[DEBUG] [dispatcher] *** Freeline Python Version: v0.8.8
[DEBUG] final apk not found, need a clean build.
[DEBUG] collecting project info, please wait a while...
[DEBUG] update apk time path: C:\Users\sunx\AndroidStudioProjects\DropPopMenu-master\app\build\freeline\freeline-assets\apktime
[DEBUG] new clean build flag value: 955000
[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: [generate_apt_files_task]
[DEBUG] [task_engine] depth: 4, task: [append_file_stat_task]
[DEBUG] [read_project_info_task] read_project_info_task start to run after waiting 0.0s
[DEBUG] [generate_file_stat_task] generate_file_stat_task start to run after waiting 0.0s
[DEBUG] [generate_file_stat_task] save app module file stat
[DEBUG] [generate_file_stat_task] generate_file_stat_task finish in 0.0s
[DEBUG] [read_project_info_task] read_project_info_task finish in 44.1s
[DEBUG] [gradle_clean_build_task] gradle_clean_build_task start to run after waiting 44.1s
[DEBUG] [clean_all_cache_task] clean_all_cache_task start to run after waiting 44.1s
[DEBUG] [generate_project_info_task] generate_project_info_task start to run after waiting 44.1s
[DEBUG] [generate_apt_files_task] generate_apt_files_task start to run after waiting 0.0s
[DEBUG] [build_base_resource_task] build_base_resource_task start to run after waiting 44.1s
[DEBUG] [install_apk_task] install_apk_task start to run after waiting 44.1s
[DEBUG] [append_file_stat_task] append_file_stat_task start to run after waiting 0.0s
[DEBUG] [task_engine] task engine occurs exception, engine will exit.
[DEBUG] [task_engine] it takes task engine 44.15s to execute tasks.
[ERROR] --------------------------------------------------------
[ERROR] Freeline ERROR
[ERROR] --------------------------------------------------------
FAILURE: Build failed with an exception.
A problem occurred configuring root project 'DropPopMenu-master'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 43s
[ERROR] --------------------------------------------------------
[ERROR] freeline failed when read project info with script: gradlew.bat -q checkBeforeCleanBuild
[ERROR] --------------------------------------------------------
[DEBUG] Prepare tasks time: 0.2s
[DEBUG] Task engine running time: 44.2s
[DEBUG] Total time: 44.3s
[DEBUG] --------------------------------------------------------
但是在Android Studio文件夹中我找到了gradle-3.0.1.pom文件。
求问,有没有人遇到相似问题,怎么解决的?
The text was updated successfully, but these errors were encountered: