Why IDEA shows java files as invalid in my Android project? -
i trying build apk this repository.
i have problem: idea show .java files invalid, can see on pic: 
what doing?
- i download mentioned (git) sources , copy sources directory
- i open directory idea directory
- in project settings setting project sdk android 22 , create
androidmodule in modules section - downloaded sources require
android-support-v7-appcompatlib, getting many errors, idea can't find theme in xml
- to remove error, had added library
android-support-v7in project settings, added module\android-sdk\extras\android\support\v7\appcompat\modules , setandroid-support-v7module dependency main android module - i invalidate cache , restart idea
after steps got xml's without errors theme (because appcompat library added), java files not looking valid, showed on picture above.
also, got red main activity in androidmanifest.xml file , can't go declaration of activity clicking ctrl + lmb on it.

you need specify source dir.
right click on com's parent folder, mark directory as , sources root.
Comments
Post a Comment