Skip to content
New issue

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

连接不上设备 #93

Closed
leehong2005 opened this issue Sep 6, 2016 · 9 comments
Closed

连接不上设备 #93

leehong2005 opened this issue Sep 6, 2016 · 9 comments

Comments

@leehong2005
Copy link

leehong2005 commented Sep 6, 2016

第一次运行python freeline.py后,app能正常启动,修改资源文件后,再运行python freeline.py,却报错。

这是第一次运行的结果:

➜  tbreader git:(tbreader_6_2_0) ✗ python freeline.py
[WARNING] NoInstallationException occurs, a clean build will be automatically executed.
[-][read_project_info_task] finished. in 10.8s
[-][generate_file_stat_task] finished. in 0.1s
[-][gradle_clean_build_task] finished. in 89.2s
[-][clean_all_cache_task] finished. in 0.0s
[-][install_apk_task] finished. in 10.4s
[-][build_base_resource_task] finished. in 1.5s
[-][generate_project_info_task] finished. in 0.0s
[DEBUG] --------------------------------------------------------
[DEBUG] Prepare tasks time: 13.9s
[DEBUG] Task engine running time: 110.4s
[DEBUG] Total time: 124.3s
[DEBUG] --------------------------------------------------------

这是第二次运行的结果:

➜  tbreader git:(tbreader_6_2_0) ✗ python freeline.py
[INFO] preparing for tasks...
[-][connect_device_task] failed. in 13.7s
[-][gradle_aapt_task] finished. in 0.5s
[-][AppLibrary] finished. in 0.0s
[-][AthenaSDK] finished. in 0.0s
[-][TBReader] finished. in 0.0s
[-][merge_dex_task] finished. in 0.0s
[-][gradle_sync_task] failed. in 0s
[-][clean_cache_task] failed. in 0s
[-][update_stat_task] failed. in 0s
[ERROR] --------------------------------------------------------
[ERROR] Freeline ERROR
[ERROR] --------------------------------------------------------
    Please make sure your application is properly running in your device.
    Check follow steps:
    1. If freeline is not added to your app's denpendencies, modifiy your dependency and run `python freeline.py -f`.
[ERROR] --------------------------------------------------------
[ERROR] Package com.tbreader.android is not found.
[ERROR] --------------------------------------------------------
[DEBUG] Prepare tasks time: 0.2s
[DEBUG] Task engine running time: 13.7s
[DEBUG] Total time: 14.0s
[DEBUG] --------------------------------------------------------

请问这是什么问题呢? #29

@charvenhe
Copy link
Member

@leehong2005 看看FreelinCore.init是否有在Application onCreate 第一行加进去

@charvenhe
Copy link
Member

@leehong2005 com.tbreader.android这个是你们的package名吗

@charvenhe
Copy link
Member

@danyunliuhen 能加个“-d” 然后把连接不上的日志发出来吗

@charvenhe
Copy link
Member

@leehong2005 @danielzhou82 更新到0.6.1版本试试看这个问题是否已经解决

@leehong2005
Copy link
Author

@charvenhe 可以确认集成方式都是正常的,按照你的文档说明来的。
之前试了一下,是从入门到放弃,对于商业项目我再评估下是否要用起来,不过都是阿里集团的东西,支持~~~

好的,我再试试新版本。

@charvenhe
Copy link
Member

@leehong2005 可以尝试用最新0.6.3降低了连接不上的概率

@yinduo527
Copy link

同样遇到此类问题,版本0.6.3,求解决

@charvenhe
Copy link
Member

charvenhe commented Sep 14, 2016

@yinduo527 @danielzhou82

问题都解决了没?没有的话加我们微信群我们单独跟进看看

@charvenhe charvenhe changed the title 第二次无法正确编译 连接不上设备 Sep 14, 2016
@charvenhe
Copy link
Member

0.7已经进行专门处理,后续有类似问题移步这里讨论 #152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants