我试图更好地理解Android源代码的一部分。
但是,我不仅希望阅读它,还希望将其包含在Android Studio中,并能够对其进行修改并重新构建,运行等。
过去,我只是简单地将相关的Java文件从源代码一个接一个地复制到Android Studio中,对其进行重命名并将其包名称更改为我自己的...,并修复所有损坏的依赖项。
This way of doing things has worked for simple classes such as RadioButton.java, but the "portion"/module I'm trying to "import" now is all the files in the tts package.
So, I found TextToSpeech.java online, copied and pasted it into Android Studio, renamed it MyTTS.java and changed the package name to mine... and started following the broken links and repeating the process...
但是,由于该tts软件包在Android代码树中更加“深入”,因此我在解决破坏的依赖项(非公共组件,帮助文件,注释等)时遇到了许多障碍,我可以问一下个人问题,但在尝试之前,我想知道是否已经有确定的方法来执行此操作,而不涉及将整个Android库导入Android Studio)。