I build a module in android studio, but in the module, the class of it, I cannot call any android functions. like "Log.d"、"Context".
How can I use the function of android framework in a module project.
Without code it is hard to tell, but I think you are not extending the class Activity
in any of your classes
Update:
see this answer to see how to create a library project:
https://stackoverflow.com/a/17064024/1173391
Here is a step by step instruction on how to do this:
http://www.vogella.com/tutorials/AndroidLibraryProjects/article.html