python freeline.py 报错 IOError: [Errno 13] Permission denied

[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 <lambda>
    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 就不报错了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值