Comments (8)
from tinkerpatch-easy-sample.
不是这个问题,已经设置false了。
<application> <service android:name="com.tencent.tinker.lib.service.TinkerPatchService" android:exported="false" android:process=":patch" /> <service android:name="com.tencent.tinker.lib.service.TinkerPatchService$InnerService" android:exported="false" android:process=":patch" /> <service android:name="com.tencent.tinker.lib.service.DefaultTinkerResultService" android:exported="false" /> </application>
应该是android:process="xxx"属性影响到了instant run,一直提示有多个进程在运行,需要重启app。BuildConfig.TINKER_ENABLE,我直接用false替换,还是不行。
from tinkerpatch-easy-sample.
Instant Run applied code changes and restarted the app.The app was restarted since it uses multiple processes.配置TinkerPatch后一直提示这个,TINKER_ENABLE = fasle,设置这个也不行,注释TinkerPatch相关的所有代码才可以使用Instant Run
from tinkerpatch-easy-sample.
Instant Run applied code changes and restarted the app.The app was restarted since it uses multiple processes.
这不是看起来已经生效了么?
from tinkerpatch-easy-sample.
这个会导致app重启,我想直接在当前界面刷新的效果。
from tinkerpatch-easy-sample.
multiple processes,会导致app重启,感觉instant run会检查AndroidManifest.xml里面有没有android:process这个属性,如果有会重启,如果没有就可以直接刷新当前界面,而不是重启,这是我测试后的感想。我另外开了一个项目,测试后得到的结果。
from tinkerpatch-easy-sample.
@jasonlee3652 确实如此,instant run对于多进程的app都会默认重启来保证所有进程都是最新的代码。
from tinkerpatch-easy-sample.
可以在外面再包一层,类似https://github.com/Tencent/tinker/blob/master/tinker-sample-android/app/build.gradle
from tinkerpatch-easy-sample.
Related Issues (20)
- 错误码:-215,错误提示:补丁合成package meta文件损坏
- app检查补丁更新接口在android O系统报错
- 使用用tinker-support配置比较简单,不知道有没有缺点
- 使用debug编译成功,使用release编译失败 HOT 2
- 对于appVersion的理解 HOT 1
- XiaoMi mix2 MIUI10.9.1.24 dev.version can not synthesize
- 小米8 Android9.0系统合成失败
- 使用JavaVersion.VERSION_1_8无法编译成功 HOT 1
- android 9.0始终是失败,以下完美合成 HOT 1
- 多个补丁 HOT 2
- gradle tinkerPatchRelease编译错误
- Caused by: com.tencent.tinker.build.util.TinkerPatchException: all loader classes don't appear in old primary dex.
- Tinker.PatchRequestCallback: Plz make sure you fill the correct appVersion and appKey in tinkerpatch.gradle. Or create the correspond project in tinkerpatch.com
- Tinker Exception:applicationLike must not be null HOT 1
- 编译出错
- 打补丁包编译失败 HOT 2
- patch 更新后进入apk 报错 HOT 1
- 关于Tinker热修复框架不支持Android10的问题(迫切希望能回复)
- Execution failed for task ':app:tinkerProcessDebugResourceId'.
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 tinkerpatch-easy-sample.