将androidx源代码添加到Android Studio项目中进行调试 [英] Add androidx source code to Android Studio project for debugging

查看:528
本文介绍了将androidx源代码添加到Android Studio项目中进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将androidx源代码添加到我的Android Studio项目中,而不是使用提供的库(implementation 'androidx.core:core-ktx:1.1.0').使用提供的库,我只能查看源代码(仅在调试期间读取),但是我需要出于测试目的对其进行修改.

I want to to add the androidx source code to my Android Studio project instead of using the provided library (implementation 'androidx.core:core-ktx:1.1.0'). Using the provided library I can only view the source code (it's read only during debugging), but I need to modify it for testing purposes.

那么如何将androidx源代码添加到Android Studio中以便可以对其进行编辑?

So how can I add the androidx source code to Android Studio so I can edit it?

推荐答案

(我没有足够的分数来添加评论...)

(I don't have enough points to add a comment...)

正如马丁所说,Google已创建了分步指南下载AndroidX,使用gradle或Android Studio进行构建,进行更改,将自定义的构建库导入到您的应用中,甚至还可以在上游进行更改.

As Martin said, Google has created a step by step guide how to download AndroidX, build it with gradle or Android Studio, make changes, import your custom build libs into your app, even contribute your changes upstream.

这篇关于将androidx源代码添加到Android Studio项目中进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆