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

Build failed with an exception. #462

Closed samwwwc closed 7 years ago

samwwwc commented 7 years ago

[DEBUG] [dispatcher] command line args: Namespace(all=False, clean=False, cleanBuild=False, debug=True, version=False, wait=False) [DEBUG] [dispatcher] Android Gradle Plugin Version: 2.2.3 [DEBUG] [dispatcher] Freeline Gradle Plugin Version: 0.8.3 [DEBUG] [dispatcher] *** Freeline Python Version: v0.8.3 [DEBUG] collecting project info, please wait a while... [DEBUG] [scan_changed_files_command] find /Applications/enzo/workspace/dev_code/PAMobileWallet/src/com/paic/zhifu/wallet/activity/tool/MyApp.java has modification. [DEBUG] final apk not found, need a clean build. [DEBUG] collecting project info, please wait a while... [DEBUG] update apk time path: /Applications/enzo/workspace/dev_code/PAMobileWallet/build/freeline/freeline-assets/apktime [DEBUG] new clean build flag value: 555847 [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 PAMobileWallet module file stat [DEBUG] [generate_file_stat_task] generate_file_stat_task finish in 0.1s [DEBUG] [read_project_info_task] read_project_info_task finish in 3.0s [DEBUG] [gradle_clean_build_task] gradle_clean_build_task start to run after waiting 3.0s [DEBUG] [gradle_clean_build_task] ./gradlew assembleDebug -P freelineBuild=true -PdisableAutoDependency=true --stacktrace [DEBUG] [gradle_clean_build_task] Gradle build task is running, please wait a minute... [DEBUG] [gradle_clean_build_task] gradle_clean_build_task finish in 9.7s [DEBUG] [install_apk_task] install_apk_task start to run after waiting 12.7s [DEBUG] [clean_all_cache_task] clean_all_cache_task start to run after waiting 12.7s [DEBUG] [generate_apt_files_task] generate_apt_files_task start to run after waiting 9.7s [DEBUG] [build_base_resource_task] build_base_resource_task start to run after waiting 12.7s [DEBUG] [append_file_stat_task] append_file_stat_task start to run after waiting 0.0s [DEBUG] [generate_project_info_task] generate_project_info_task start to run after waiting 12.6s [DEBUG] [task_engine] task engine occurs exception, engine will exit. [DEBUG] [task_engine] it takes task engine 12.69s to execute tasks. [ERROR] -------------------------------------------------------- [ERROR] Freeline ERROR [ERROR] -------------------------------------------------------- Parallel execution with configuration on demand is an incubating feature. freeline auto-dependency disabled WARNING: The android.dexOptions.incremental property is deprecated and it has no effect on the build process. find variant devDebug start hack process... find default apk path: /Applications/enzo/workspace/dev_code/PAMobileWallet/build/outputs/apk/PAMobileWallet-dev-debug.apk Old file /Applications/enzo/workspace/dev_code/PAMobileWallet/freeline_project_description.json removed. Save to /Applications/enzo/workspace/dev_code/PAMobileWallet/freeline_project_description.json Freeline add additionalParameters -P /Applications/enzo/workspace/dev_code/PAMobileWallet/build/freeline/public_keeper.xml to aaptOptions find additional jar: /Users/enzo/Library/Android/sdk/platforms/android-23/optional/org.apache.http.legacy.jar Freeline found PAMobileWallet apt plugin enabled. variant devRelease is not debug, skip hack process. variant armDebug is not dev, skip hack process. variant armRelease is not debug, skip hack process. :preBuild UP-TO-DATE :preArmDebugBuild UP-TO-DATE :checkArmDebugManifest :preArmReleaseBuild UP-TO-DATE :preDevDebugBuild UP-TO-DATE :preDevReleaseBuild UP-TO-DATE :prepareCnRansjRnReactNative031KLibrary UP-TO-DATE :prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE :prepareComAndroidSupportDesign2301Library UP-TO-DATE :preArmDebugAndroidTestBuild UP-TO-DATE :prepareComAndroidSupportMultidex101Library UP-TO-DATE :prepareComAndroidSupportPaletteV72301Library UP-TO-DATE :prepareComAndroidSupportRecyclerviewV72301Library UP-TO-DATE :prepareComAndroidSupportSupportV42321Library UP-TO-DATE :prepareComArtemzinRxjavaProguardRules1190Library UP-TO-DATE :prepareComFacebookFrescoAnimatedBase0120Library UP-TO-DATE :prepareComFacebookFrescoAnimatedGif0120Library UP-TO-DATE :prepareComFacebookFrescoDrawee0120Library UP-TO-DATE :prepareComFacebookFrescoFbcore0120Library UP-TO-DATE :prepareComFacebookFrescoFresco0120Library UP-TO-DATE :prepareComFacebookFrescoImagepipeline0120Library UP-TO-DATE :prepareComFacebookFrescoImagepipelineBase0120Library UP-TO-DATE :prepareComFacebookFrescoImagepipelineOkhttp30110Library UP-TO-DATE :prepareComFacebookSoloaderSoloader010Library UP-TO-DATE :prepareComFacebookStethoStetho141Library UP-TO-DATE :prepareComFacebookStethoStethoOkhttp3141Library UP-TO-DATE :prepareComGithubLzyzsdCircleprogress110Library UP-TO-DATE :prepareComJakewhartonButterknife801Library UP-TO-DATE :prepareComOrhanobutLogger115Library UP-TO-DATE :prepareComSquareupLeakcanaryLeakcanaryAndroid14Beta2Library UP-TO-DATE :prepareComYiqianbaoPamap02Library UP-TO-DATE :prepareComYiqianbaoSpileboard1121Library UP-TO-DATE :prepareComYiqianbaoSqlite3sec02Library UP-TO-DATE :prepareComYiqianbaoZxing01Library UP-TO-DATE :prepareInfoHoang8fAndroidSegmented106Library UP-TO-DATE :prepareIoReactivexRxandroid121Library UP-TO-DATE :prepareJpWasabeefRecyclerviewAnimators103Library UP-TO-DATE :prepareKaiHuAppSdkLibReleaseLibrary UP-TO-DATE :prepareMeLeolinShortcutBadger115Library UP-TO-DATE :preparePafusharesdk100Library UP-TO-DATE :preparePlDroidsonroidsGifAndroidGifDrawable1117Library UP-TO-DATE :prepareSeEmilsjolanderStickylistheaders270Library UP-TO-DATE :prepareArmDebugDependencies :compileArmDebugAidl UP-TO-DATE :compileArmDebugRenderscript :generateArmDebugBuildConfig UP-TO-DATE :generateArmDebugResValues UP-TO-DATE :generateArmDebugResources :mergeArmDebugResources UP-TO-DATE :processArmDebugManifest UP-TO-DATE :processArmDebugResources UP-TO-DATE :generateArmDebugSources :incrementalArmDebugJavaCompilationSafeguard UP-TO-DATE :compileArmDebugJavaWithJavac FAILED

BUILD FAILED

Total time: 9.573 secs

警告: 未知的枚举常量 Datatype.STRING 原因: 找不到com.squareup.wire.Message$Datatype的类文件 警告: 未知的枚举常量 Label.REQUIRED 原因: 找不到com.squareup.wire.Message$Label的类文件 警告: 未知的枚举常量 Datatype.STRING 警告: 未知的枚举常量 Label.REQUIRED 警告: 未知的枚举常量 Datatype.STRING 警告: 未知的枚举常量 Label.REQUIRED 警告: 未知的枚举常量 Datatype.INT32 警告: 未知的枚举常量 Label.REQUIRED 警告: 未知的枚举常量 Datatype.INT32 警告: 未知的枚举常量 Label.REQUIRED 警告: 未知的枚举常量 Datatype.STRING 警告: 未知的枚举常量 Datatype.STRING 原因: 找不到com.squareup.wire.Message$Datatype的类文件 警告: 未知的枚举常量 Label.REQUIRED 原因: 找不到com.squareup.wire.Message$Label的类文件 警告: 未知的枚举常量 Datatype.STRING 警告: 未知的枚举常量 Label.REQUIRED 警告: 未知的枚举常量 Datatype.STRING 警告: 未知的枚举常量 Label.REQUIRED 警告: 未知的枚举常量 Datatype.INT32 警告: 未知的枚举常量 Label.REQUIRED 警告: 未知的枚举常量 Datatype.INT32 警告: 未知的枚举常量 Label.REQUIRED 警告: 未知的枚举常量 Datatype.STRING /Applications/enzo/workspace/dev_code/PAMobileWallet/src/com/paic/zhifu/wallet/activity/tool/MyApp.java:15: 错误: 程序包com.antfortune.freeline不存在 import com.antfortune.freeline.FreelineCore; ^ 警告: 未知的枚举常量 Datatype.STRING 原因: 找不到com.squareup.wire.Message$Datatype的类文件 警告: 未知的枚举常量 Label.REQUIRED 原因: 找不到com.squareup.wire.Message$Label的类文件 警告: 未知的枚举常量 Datatype.STRING 警告: 未知的枚举常量 Label.REQUIRED 警告: 未知的枚举常量 Datatype.STRING 警告: 未知的枚举常量 Label.REQUIRED 警告: 未知的枚举常量 Datatype.INT32 警告: 未知的枚举常量 Label.REQUIRED 警告: 未知的枚举常量 Datatype.INT32 警告: 未知的枚举常量 Label.REQUIRED 警告: 未知的枚举常量 Datatype.STRING 1 个错误 33 个警告

FAILURE: Build failed with an exception.

[ERROR] -------------------------------------------------------- [ERROR] build failed with script: ./gradlew assembleDebug -P freelineBuild=true -PdisableAutoDependency=true --stacktrace [ERROR] -------------------------------------------------------- [DEBUG] Prepare tasks time: 0.5s [DEBUG] Task engine running time: 12.7s [DEBUG] Total time: 13.2s [DEBUG] --------------------------------------------------------

samwwwc commented 7 years ago
    classpath 'com.antfortune.freeline:gradle:0.8.3'
    classpath 'com.android.tools.build:gradle:2.2.3'

=========== compileSdkVersion 23 buildToolsVersion '23.0.3'

freeline { hack true productFlavor "dev" autoDependency false }

samwwwc commented 7 years ago

Total time: 19.279 secs RonniedeiMac-2:PAMobileWallet enzo$ ./gradlew initFreeline Parallel execution with configuration on demand is an incubating feature. freeline auto add runtime dependencies: 0.8.3 WARNING: The android.dexOptions.incremental property is deprecated and it has no effect on the build process. find variant devDebug start hack process... variant devRelease is not debug, skip hack process. variant armDebug is not dev, skip hack process. variant armRelease is not debug, skip hack process. :initFreeline Freeline initial process start... [ERROR] Fetching data from api occurs error Downloading release pack from https://github.com/alibaba/freeline/releases/download/0.8.3/freeline-v0.8.3.zip Please wait a minute... [get] Getting: https://github.com/alibaba/freeline/releases/download/0.8.3/freeline-v0.8.3.zip [get] To: /Applications/enzo/workspace/dev_code/PAMobileWallet/freeline.zip.tmp [get] https://github.com/alibaba/freeline/releases/download/0.8.3/freeline-v0.8.3.zip moved to https://github-cloud.s3.amazonaws.com/releases/64864962/9a25984a-bb05-11e6-8ba1-3f27887470b9.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20161209%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20161209T065320Z&X-Amz-Expires=300&X-Amz-Signature=a7a10a294bf471e7f999f399c68ed79b51772e6c178c1928a949d2ddf08cb691&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dfreeline-v0.8.3.zip&response-content-type=application%2Foctet-stream [get] Error getting https://github.com/alibaba/freeline/releases/download/0.8.3/freeline-v0.8.3.zip to /Applications/enzo/workspace/dev_code/PAMobileWallet/freeline.zip.tmp :initFreeline FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 4 mins 30.662 secs

samwwwc commented 7 years ago

官方的demo 没有问题.git clone git@github.com:alibaba/freeline.git cd freeline/sample ./gradlew initFreeline python freeline.py

同样的配置.在项目里. ./gradlew initFreeline 是BUILD SUCCESSFUL 然后. 执行 python freeline.py 就出现错误.

samwwwc commented 7 years ago

有条log是 错误: 程序包com.antfortune.freeline不存在 但是已经在项目里了.

lomanyong commented 7 years ago

@samwwwc 你上面的那个 init 错误是因为没有加参数:-Pmirror,执行./gradlew initFreeline -Pmirror即可

samwwwc commented 7 years ago

Old file /Applications/enzo/workspace/dev_code/TestFL/freeline_project_description.json removed. Save to /Applications/enzo/workspace/dev_code/TestFL/freeline_project_description.json

BUILD SUCCESSFUL

Total time: 37.376 secs RonniedeiMac-2:TestFL enzo$ python freeline.py [INFO] preparing for tasks... [-][read_project_info_task] finished. in 8.3s [-][generate_file_stat_task] finished. in 0.0s [-][gradle_clean_build_task] failed. in 9.9s [-][clean_all_cache_task] failed. in 0s [-][install_apk_task] failed. in 0s [-][build_base_resource_task] failed. in 0s [-][generate_project_info_task] failed. in 0s [-][generate_apt_files_task] failed. in 0s [-][append_file_stat_task] failed. in 0s [ERROR] -------------------------------------------------------- [ERROR] Freeline ERROR [ERROR] -------------------------------------------------------- To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html. freeline auto-dependency disabled Incremental java compilation is an incubating feature. variant normalDebug is not develop, skip hack process. variant normalRelease is not debug, skip hack process. find variant developDebug start hack process... find default apk path: /Applications/enzo/workspace/dev_code/TestFL/app/build/outputs/apk/app-develop-debug.apk Old file /Applications/enzo/workspace/dev_code/TestFL/freeline_project_description.json removed. Save to /Applications/enzo/workspace/dev_code/TestFL/freeline_project_description.json Freeline add additionalParameters -P /Applications/enzo/workspace/dev_code/TestFL/app/build/freeline/public_keeper.xml to aaptOptions TestFL merge resources task not found. TestFL merge assets task not found. runtime merge resources task not found. runtime merge assets task not found. runtime merge resources task not found. runtime merge assets task not found. runtime-no-op merge resources task not found. runtime-no-op merge assets task not found. Freeline not found apt plugin for app[aptEnabled: true, isAptEnabled: false, javaCompile: false] variant developRelease is not debug, skip hack process. :app:preBuild UP-TO-DATE :app:preDevelopDebugBuild UP-TO-DATE :app:checkDevelopDebugManifest :app:preDevelopReleaseBuild UP-TO-DATE :app:preNormalDebugBuild UP-TO-DATE :app:preNormalReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2421Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72421Library UP-TO-DATE :app:prepareComAndroidSupportSupportCompat2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportCoreUi2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportCoreUtils2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportFragment2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportMediaCompat2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42421Library UP-TO-DATE :app:prepareComAndroidSupportSupportVectorDrawable2421Library UP-TO-DATE :app:prepareDevelopDebugDependencies :app:compileDevelopDebugAidl UP-TO-DATE :app:compileDevelopDebugRenderscript UP-TO-DATE :app:generateDevelopDebugBuildConfig UP-TO-DATE :app:generateDevelopDebugFreelineConfig :app:generateDevelopDebugResValues UP-TO-DATE :app:generateDevelopDebugResources UP-TO-DATE :app:resourcesInterceptorBeforeMergeDevelopDebugResources find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-compat/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-compat/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-core-utils/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-core-utils/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-core-ui/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-core-ui/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-media-compat/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-media-compat/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-fragment/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-fragment/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-v4/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-v4/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/src/main/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/generated/res/rs/develop/debug add local resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/generated/res/rs/develop/debug find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/generated/res/resValues/develop/debug add local resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/generated/res/resValues/develop/debug Old file /Applications/enzo/workspace/dev_code/TestFL/app/build/freeline/app/resources_dependencies.json removed. Save to /Applications/enzo/workspace/dev_code/TestFL/app/build/freeline/app/resources_dependencies.json :app:mergeDevelopDebugResources UP-TO-DATE :app:processDevelopDebugManifest find manifest file path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/manifests/full/develop/debug/AndroidManifest.xml :app:processDevelopDebugResources :app:generateDevelopDebugSources :app:incrementalDevelopDebugJavaCompilationSafeguard UP-TO-DATE :app:compileDevelopDebugJavaWithJavac :app:compileDevelopDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). :app:compileDevelopDebugJavaWithJavac FAILED

BUILD FAILED

Total time: 8.76 secs

/Applications/enzo/workspace/dev_code/TestFL/app/src/main/java/okwl/enzo/com/testfl/MyApp.java:5: 错误: 找不到符号 import com.antfortune.freeline.FreelineCore; ^ 符号: 类 FreelineCore 位置: 程序包 com.antfortune.freeline /Applications/enzo/workspace/dev_code/TestFL/app/src/main/java/okwl/enzo/com/testfl/MyApp.java:15: 错误: 找不到符号 FreelineCore.init(this); ^ 符号: 变量 FreelineCore 位置: 类 MyApp 2 个错误

FAILURE: Build failed with an exception.

[ERROR] -------------------------------------------------------- [ERROR] build failed with script: ./gradlew :app:assembleDevelopDebug -P freelineBuild=true -PdisableAutoDependency=true [ERROR] -------------------------------------------------------- [DEBUG] Prepare tasks time: 0.4s [DEBUG] Task engine running time: 18.1s [DEBUG] Total time: 18.5s [DEBUG] -------------------------------------------------------

samwwwc commented 7 years ago

执行./gradlew initFreeline -Pmirror 没问题 Old file /Applications/enzo/workspace/dev_code/TestFL/freeline_project_description.json removed. Save to /Applications/enzo/workspace/dev_code/TestFL/freeline_project_description.json

BUILD SUCCESSFUL

Total time: 37.376 secs

samwwwc commented 7 years ago

执行完 ./gradlew initFreeline -Pmirror 后 执行 python freeline.py 报错.

/Applications/enzo/workspace/dev_code/TestFL/app/src/main/java/okwl/enzo/com/testfl/MyApp.java:5: 错误: 找不到符号 import com.antfortune.freeline.FreelineCore; ^ [ERROR] -------------------------------------------------------- [ERROR] build failed with script: ./gradlew :app:assembleDevelopDebug -P freelineBuild=true -PdisableAutoDependency=true [ERROR] --------------------------------------------------------

自己写的一个helloWord demo没有其他东西.

配置是从官方demo扒的.

buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.antfortune.freeline:gradle:0.8.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }

allprojects { repositories { jcenter() } }

task clean(type: Delete) { delete rootProject.buildDir }

samwwwc commented 7 years ago

apply plugin: 'com.android.application' apply plugin: 'com.antfortune.freeline'

android { compileSdkVersion 24 buildToolsVersion "24.0.2" defaultConfig { applicationId "okwl.enzo.com.testfl" minSdkVersion 15 targetSdkVersion 24 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } freeline { hack true productFlavor "develop" autoDependency false } productFlavors { normal {

    }

    develop {
    }
}

}

dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:24.2.1' testCompile 'junit:junit:4.12' }

samwwwc commented 7 years ago

两次执行log如下:

freeline auto add runtime dependencies: 0.8.3 Incremental java compilation is an incubating feature. variant normalDebug is not develop, skip hack process. variant normalRelease is not debug, skip hack process. find variant developDebug start hack process... variant developRelease is not debug, skip hack process. :initFreeline Freeline initial process start... [NOTE] Download freeline dependency from mirror... Downloading release pack from http://static.freelinebuild.com/freeline/0.8.3/all/freeline.zip Please wait a minute... [get] Getting: http://static.freelinebuild.com/freeline/0.8.3/all/freeline.zip [get] To: /Applications/enzo/workspace/dev_code/TestFL/freeline.zip.tmp download success. removing existing freeline directory [unzip] Expanding: /Applications/enzo/workspace/dev_code/TestFL/freeline.zip into /Applications/enzo/workspace/dev_code/TestFL unziped freeline.zip. { "project_type": "gradle", "android_gradle_plugin_version": "2.2.3", "freeline_gradle_plugin_version": "0.8.3", "java_home": "/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home", "freeline_cache_dir": "/Applications/enzo/workspace/dev_code/TestFL", "auto_dependency": false, "product_flavor": "develop", "build_script": "./gradlew :app:assembleDevelopDebug", "build_script_work_directory": "", "root_dir": "/Applications/enzo/workspace/dev_code/TestFL", "main_project_name": "app", "main_project_dir": "app", "build_directory": "/Applications/enzo/workspace/dev_code/TestFL/app/build", "build_cache_dir": "/Applications/enzo/workspace/dev_code/TestFL/app/build/freeline", "build_tools_version": "24.0.2", "sdk_directory": "/Users/enzo/Library/Android/sdk", "build_tools_directory": "/Users/enzo/Library/Android/sdk/build-tools/24.0.2", "compile_sdk_version": "android-24", "compile_sdk_directory": "/Users/enzo/Library/Android/sdk/platforms/android-24", "package": "okwl.enzo.com.testfl", "debug_package": "okwl.enzo.com.testfl", "main_manifest_path": "/Applications/enzo/workspace/dev_code/TestFL/app/src/main/AndroidManifest.xml", "launcher": "okwl.enzo.com.testfl.MainActivity", "apk_path": "/Applications/enzo/workspace/dev_code/TestFL/app/build/outputs/apk/app-develop-debug.apk", "extra_dep_res_paths": [

],
"exclude_dep_res_paths": [

],
"main_r_path": "/Applications/enzo/workspace/dev_code/TestFL/app/build/generated/source/r/develop/debug/R.java",
"use_jdk8": true,
"main_src_directory": [
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/developDebug/java",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/debug/java",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/develop/java",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/main/java"
],
"main_res_directory": [
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/developDebug/res",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/debug/res",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/develop/res",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/main/res"
],
"main_assets_directory": [
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/developDebug/assets",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/debug/assets",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/develop/assets",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/main/assets"
],
"main_jni_directory": [
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/developDebug/jni",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/debug/jni",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/develop/jni",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/main/jni"
],
"main_jniLibs_directory": [
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/developDebug/jniLibs",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/debug/jniLibs",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/develop/jniLibs",
    "/Applications/enzo/workspace/dev_code/TestFL/app/src/main/jniLibs"
],
"project_source_sets": {
    "app": {
        "main_src_directory": [
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/developDebug/java",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/debug/java",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/develop/java",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/main/java"
        ],
        "main_res_directory": [
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/developDebug/res",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/debug/res",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/develop/res",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/main/res"
        ],
        "main_assets_directory": [
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/developDebug/assets",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/debug/assets",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/develop/assets",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/main/assets"
        ],
        "main_jni_directory": [
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/developDebug/jni",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/debug/jni",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/develop/jni",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/main/jni"
        ],
        "main_jniLibs_directory": [
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/developDebug/jniLibs",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/debug/jniLibs",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/develop/jniLibs",
            "/Applications/enzo/workspace/dev_code/TestFL/app/src/main/jniLibs"
        ],
        "main_manifest_path": "/Applications/enzo/workspace/dev_code/TestFL/app/src/main/AndroidManifest.xml"
    }
},
"modules": [
    {
        "name": "app",
        "path": "/Applications/enzo/workspace/dev_code/TestFL/app"
    }
],
"module_dependencies": {
    "app": [

    ]
},
"databinding": [

],
"databinding_modules": [

]

} Old file /Applications/enzo/workspace/dev_code/TestFL/freeline_project_description.json removed. Save to /Applications/enzo/workspace/dev_code/TestFL/freeline_project_description.json

BUILD SUCCESSFUL

Total time: 37.376 secs RonniedeiMac-2:TestFL enzo$ python freeline.py [INFO] preparing for tasks... [-][read_project_info_task] finished. in 8.3s [-][generate_file_stat_task] finished. in 0.0s [-][gradle_clean_build_task] failed. in 9.9s [-][clean_all_cache_task] failed. in 0s [-][install_apk_task] failed. in 0s [-][build_base_resource_task] failed. in 0s [-][generate_project_info_task] failed. in 0s [-][generate_apt_files_task] failed. in 0s [-][append_file_stat_task] failed. in 0s [ERROR] -------------------------------------------------------- [ERROR] Freeline ERROR [ERROR] -------------------------------------------------------- To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html. freeline auto-dependency disabled Incremental java compilation is an incubating feature. variant normalDebug is not develop, skip hack process. variant normalRelease is not debug, skip hack process. find variant developDebug start hack process... find default apk path: /Applications/enzo/workspace/dev_code/TestFL/app/build/outputs/apk/app-develop-debug.apk Old file /Applications/enzo/workspace/dev_code/TestFL/freeline_project_description.json removed. Save to /Applications/enzo/workspace/dev_code/TestFL/freeline_project_description.json Freeline add additionalParameters -P /Applications/enzo/workspace/dev_code/TestFL/app/build/freeline/public_keeper.xml to aaptOptions TestFL merge resources task not found. TestFL merge assets task not found. runtime merge resources task not found. runtime merge assets task not found. runtime merge resources task not found. runtime merge assets task not found. runtime-no-op merge resources task not found. runtime-no-op merge assets task not found. Freeline not found apt plugin for app[aptEnabled: true, isAptEnabled: false, javaCompile: false] variant developRelease is not debug, skip hack process. :app:preBuild UP-TO-DATE :app:preDevelopDebugBuild UP-TO-DATE :app:checkDevelopDebugManifest :app:preDevelopReleaseBuild UP-TO-DATE :app:preNormalDebugBuild UP-TO-DATE :app:preNormalReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2421Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72421Library UP-TO-DATE :app:prepareComAndroidSupportSupportCompat2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportCoreUi2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportCoreUtils2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportFragment2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportMediaCompat2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42421Library UP-TO-DATE :app:prepareComAndroidSupportSupportVectorDrawable2421Library UP-TO-DATE :app:prepareDevelopDebugDependencies :app:compileDevelopDebugAidl UP-TO-DATE :app:compileDevelopDebugRenderscript UP-TO-DATE :app:generateDevelopDebugBuildConfig UP-TO-DATE :app:generateDevelopDebugFreelineConfig :app:generateDevelopDebugResValues UP-TO-DATE :app:generateDevelopDebugResources UP-TO-DATE :app:resourcesInterceptorBeforeMergeDevelopDebugResources find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-compat/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-compat/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-core-utils/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-core-utils/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-core-ui/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-core-ui/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-media-compat/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-media-compat/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-fragment/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-fragment/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-v4/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/support-v4/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/24.2.1/res add library resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/24.2.1/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/src/main/res find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/generated/res/rs/develop/debug add local resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/generated/res/rs/develop/debug find resource path: /Applications/enzo/workspace/dev_code/TestFL/app/build/generated/res/resValues/develop/debug add local resource: /Applications/enzo/workspace/dev_code/TestFL/app/build/generated/res/resValues/develop/debug Old file /Applications/enzo/workspace/dev_code/TestFL/app/build/freeline/app/resources_dependencies.json removed. Save to /Applications/enzo/workspace/dev_code/TestFL/app/build/freeline/app/resources_dependencies.json :app:mergeDevelopDebugResources UP-TO-DATE :app:processDevelopDebugManifest find manifest file path: /Applications/enzo/workspace/dev_code/TestFL/app/build/intermediates/manifests/full/develop/debug/AndroidManifest.xml :app:processDevelopDebugResources :app:generateDevelopDebugSources :app:incrementalDevelopDebugJavaCompilationSafeguard UP-TO-DATE :app:compileDevelopDebugJavaWithJavac :app:compileDevelopDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). :app:compileDevelopDebugJavaWithJavac FAILED

BUILD FAILED

Total time: 8.76 secs

/Applications/enzo/workspace/dev_code/TestFL/app/src/main/java/okwl/enzo/com/testfl/MyApp.java:5: 错误: 找不到符号 import com.antfortune.freeline.FreelineCore; ^ 符号: 类 FreelineCore 位置: 程序包 com.antfortune.freeline /Applications/enzo/workspace/dev_code/TestFL/app/src/main/java/okwl/enzo/com/testfl/MyApp.java:15: 错误: 找不到符号 FreelineCore.init(this); ^ 符号: 变量 FreelineCore 位置: 类 MyApp 2 个错误

FAILURE: Build failed with an exception.

[ERROR] -------------------------------------------------------- [ERROR] build failed with script: ./gradlew :app:assembleDevelopDebug -P freelineBuild=true -PdisableAutoDependency=true [ERROR] -------------------------------------------------------- [DEBUG] Prepare tasks time: 0.4s [DEBUG] Task engine running time: 18.1s [DEBUG] Total time: 18.5s [DEBUG] --------------------------------------------------------