Comments (26)
@johngef 你们的app中是否调用了FreelineCore.init(this);
了吗?
还有,最好检查下是否有开着网络代理,导致127.0.0.1
无法正常使用的情况。
from freeline.
@yanweimin7 你们有配置applicationIdSuffix吗?
from freeline.
没有,pm list package 是能够找到com.XXX的
from freeline.
defaultConfig {
applicationId "com.XXX"
minSdkVersion 16
targetSdkVersion 22
versionCode 11
versionName "1.1.3"
multiDexEnabled true
from freeline.
@yanweimin7 是否在你们的Application类中调用了FreelineCore.init(this);
了呢
from freeline.
调用了的
FreelineCore.init(this);
Global.init(this);
from freeline.
@yanweimin7 你们的android gradle版本是多少的呢?
from freeline.
distributionUrl=https://services.gradle.org/distributions/gradle-2.10-all.zip
from freeline.
@yanweimin7 app启动后可以看下logcat,过滤一下freeline
的日志,看是否有freeline相关的日志输出
from freeline.
08-26 18:34:06.074 25971-25971/? I/Freeline: freeline start initial process...
08-26 18:34:06.075 25971-25971/? I/Freeline: freeline init application
08-26 18:34:06.079 25971-25971/? I/Freeline: start to inject dex...
08-26 18:34:06.079 25971-25971/? I/Freeline: start to inject resources...
08-26 18:34:06.080 25971-25971/? I/Freeline: dynamicInfoSp: {}
08-26 18:34:06.080 25971-25971/? I/Freeline: resMap: {}
08-26 18:34:06.080 25971-25971/? I/Freeline: start to load hackload.dex...
08-26 18:34:06.081 25971-25971/? I/Freeline.hackDex: /data/data/com.xxx/cache/hack/hackload.dex dex length: 848
08-26 18:34:06.081 25971-25971/? I/Freeline.hackDex: /data/data/com.xxx/cache/hack/opt opt length: 4096
08-26 18:34:06.084 25971-25971/? I/Freeline.hackDex: after opt, dex len:848; opt len:4096
08-26 18:34:06.084 25971-25971/? I/Freeline: load hackload,dex size:848
08-26 18:34:06.084 25971-25971/? I/Freeline: freeline init server
08-26 18:34:06.126 879-1612/? I/ActivityManager: Start proc 26002:com.xxx:freeline/u0a540 for service com.xxx/com.antfortune.freeline.FreelineService
08-26 18:34:06.205 26002-26002/? I/Freeline.Service: onStartCommand Received start id 1, intent: Intent { cmp=com.xxx/com.antfortune.freeline.FreelineService }
08-26 18:34:06.221 26002-26002/? I/Freeline.Service$Inner: onStartCommand Received start id 1, intent: Intent { cmp=com.xxx/com.antfortune.freeline.FreelineService$InnerService }
from freeline.
@yanweimin7 有没有这句log呢? Freeline.increment server running on port xxxxx
from freeline.
@yanweimin7,是否是没开启debug模式呢
from freeline.
debug是开启了的 , 没看到Freeline.increment server running on port xxxxx
netstat 命令结果:
tcp6 0 0 :::41128 :::* LISTEN
tcp6 0 0 :::48432 :::* LISTEN
tcp6 0 0 ::ffff:127.0.0.1:52670 :::* LISTEN
tcp6 0 0 ::ffff:127.0.0.1:41128 ::ffff:127.0.0.1:48590 TIME_WAIT
tcp6 0 0 ::ffff:127.0.0.1:41128 ::ffff:127.0.0.1:48600 TIME_WAIT
tcp6 0 0 ::ffff:127.0.0.1:41128 ::ffff:127.0.0.1:48610 TIME_WAIT
udp6 0 0 :::34009 :::* CLOSE
udp6 3008 0 :::39285 :::* CLOSE
udp6 0 0 :::47508 :::* CLOSE
udp6 0 0 :::58858 :::* CLOSE
from freeline.
@yanweimin7,可以换台手机试试吗?貌似tcp启动不了
from freeline.
@yanweimin7 Freeline.increment server running on port 是运行在另外一个独立进程的,你可以检查下日志filter是不是过滤了,另外看看mainifest的是不是debugable关闭了。freeline非debug模式不会开启tcp端口的
from freeline.
@yanweimin7 可以先检查下电脑上是否使用了任何网络代理app,有使用的话可以先关掉。然后也可以使用这个runtime版本com.antfortune.freeline:runtime:0.6.0.1609051840
,看是否可以稳定连接上app。
from freeline.
我也有同样的问题
from freeline.
@yanweimin7 你的问题解决了吗
from freeline.
@johngef 你那边也是连接不上,一直在"try to connect"吗?
from freeline.
[INFO] preparing for tasks...
[-][connect_device_task] failed. in 14.5s
[-][gradle_aapt_task] finished. in 0.0s
[-][CTBusiness] finished. in 0.0s
[-][CTTour] finished. in 4.9s
[-][CtripMain] finished. in 0.1s
[-][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 ctrip.android.view is not found.
[ERROR] --------------------------------------------------------
[DEBUG] Prepare tasks time: 0.3s
[DEBUG] Task engine running time: 14.5s
[DEBUG] Total time: 14.9s
[DEBUG] --------------------------------------------------------
from freeline.
from freeline.
调用了
from freeline.
adb forward tcp:41128 tcp:41128
curl -v 127.0.0.1:41128/checkSync?sync=1\&uuid=22
@johngef 执行一下以上两行命令,然后麻烦贴一下输出..
from freeline.
@johngef ctrip.android.view
这个包名,执行adb shell pm list packages ctrip.android.view
,是否存在这个包呢?
from freeline.
@jiaoge 更新到0.6.1上再试试看
from freeline.
0.7已经进行专门处理,后续有类似问题移步这里讨论 #152
from freeline.
Related Issues (20)
- 我是先安装python2.7.9,然后安装你们github上的教程仔细来,然后点击android studio 上的freeline按钮,没反应.最最重要的是我用命令来执行python freeline.py多次还是和第一次执行的时间一样长,并且还没原始的run时间短?请教下怎么回事?
- WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'. It will be removed at the end of 2018. HOT 1
- Freeline 最新代码拉下来出错,无法下载1.0.0版本
- Freeline在Android Studio里面,无法搜索到,windows HOT 2
- gradle_tools.py 运行异常
- 不支持 Kotlin,一年没更新,卒。 HOT 3
- 好好的项目就这么凉了 HOT 3
- Jar Conflict about butterknife
- freeline提示No module named 'build_commands'无法运行 HOT 1
- 本地编译源代码,提示错误。com.antfortune.freeline:gradle:0.8.9-SNAPSHOT找不到
- Site offline
- 这么好的插件 怎么就凉了 HOT 3
- 纪念一下
- 与viewBinding 冲突 HOT 2
- Custom task is not recognized by jenkins
- JavaPoet Version collision With ViewBinding
- cannot use freeline in Android Studio 4.1.2, how to adapt Android Studio 4.1.2? HOT 2
- On Mac M1 ,Newest AndroidStudio "Could not find com.antfortune.freeline:gradle:0.8.8" HOT 1
- abnormal link
- 希望能够提供一个样例项目,第一步就配置不过去
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freeline.