-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
已知问题:IDE中直接Run sample-host会失败 #1263
Comments
大佬这个问题我弄过,之前想自定义 apk 打包输出目录的时候遇到了这个问题,后面也是通过 hook |
临时兼容手段:
./gradlew :sample-host:installDebug
google开发者的意思是IDE中点Run按钮构建的apk是针对Run选择的机型构建的,把这个apk直接放到output目录中,会让人误以为这个apk是不区分机型的构建。所以这是个bug。修复方案就是点Run构建的apk不放到output目录。
我们这个项目并不涉及这个问题。我们只是想让sample-host构建自动触发sample-app等plugin的apk构建,然后拿到apk打包成插件包,自动放到host的asset中。这样开发shadow时,修改了代码一键运行host,方便开发调试。
现在我们代码是写死的output目录路径。如果要检测是Run构建的,还是assemble任务构建的,一时还没有好办法。这里主要是涉及两边如果都构建过,哪个是新的。初步看应该是从
apk_ide_redirect_file
的记录确定。总之这个开发还比较费事,先置顶个issue吧。
Originally posted by @shifujun in #799 (comment)
Originally posted by @shifujun in #799 (comment)
The text was updated successfully, but these errors were encountered: