Android Studio 2.2 integration
已回答
I installed the plugin 2016.1.145.266 in Android Studio 2.2 and it only kind of works. I get some syntax highlighting, but I get "unresolved reference 'str'" and "unresolved reference 'os'". I can get the plugin to work fine in IntelliJ. I tried doing a CTRL+ALT+SHIFT+S and setting up the Python interpreter like I did in IntelliJ, but that doesn't seem to work in AS. Is there a way to fix those bugs, or set up AS so that it can use PyCharm or IntelliJ when editing Python files?
请先登录再写评论。
It turns out Android Studio 2.2 doesn't allow you to create a Python module or add a Python facet for a Java module, as IntelliJ IDEA does. The Python plugin cannot resolve references to modules and symbols without a Python SDK selected for a Python module or facet. You could ask the Android Studio developers for adding Python module / facet support to the IDE or you could try IntelliJ IDEA with Android Support and Python plugins.