[dispatcher] command line args: Namespace(all=False, clean=False, cleanBuild=False, debug=False, init=False, version=False)
final apk not found, need a clean build.
collecting project info, please wait a while...
update apk time path: /home/javalong/android_xunbaozl/mainprotect/build/freeline/freeline-assets/apktime
new clean build flag value: 597691
[ERROR] --------------------------------------------------------
[ERROR] Freeline ERROR
[ERROR] --------------------------------------------------------
Traceback (most recent call last):
File "/home/javalong/android_xunbaozl/freeline_core/dispatcher.py", line 88, in _exec_command
command.execute()
File "/home/javalong/android_xunbaozl/freeline_core/freeline_build.py", line 35, in execute
self._build_command.execute()
File "/home/javalong/android_xunbaozl/freeline_core/build_commands.py", line 11, in execute
map(lambda command: command.execute(), self.command_list)
File "/home/javalong/android_xunbaozl/freeline_core/build_commands.py", line 11, in
map(lambda command: command.execute(), self.command_list)
File "/home/javalong/android_xunbaozl/freeline_core/build_commands.py", line 64, in execute
self._builder.update_apk_created_time()
File "/home/javalong/android_xunbaozl/freeline_core/builder.py", line 124, in update_apk_created_time
update_clean_build_created_flag(get_apktime_path(self._config))
File "/home/javalong/android_xunbaozl/freeline_core/sync_client.py", line 241, in update_clean_build_created_flag
write_file_content(apktime_path, flag)
File "/home/javalong/android_xunbaozl/freeline_core/utils.py", line 118, in write_file_content
with open(target_path, 'w') as fp:
IOError: [Errno 13] Permission denied: u'/home/javalong/android_xunbaozl/mainprotect/build/freeline/freeline-assets/apktime'
[ERROR] --------------------------------------------------------
[ERROR]
[ERROR] --------------------------------------------------------
clean 了几次也没有什么用
最后发现
-rw-rw-r-- 1 javalong javalong 4971 9月 14 17:57 gradlew
其实freeline.py还是会 调用gradlew进行运行的.
gradlew其实是应该可执行的.
解决办法:
sudo chmod 744 gradlew
然后再调用
python freeline.py 就不报错了