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: enter image description here

what doing?

  1. i download mentioned (git) sources , copy sources directory
  2. i open directory idea directory
  3. in project settings setting project sdk android 22 , create android module in modules section
  4. downloaded sources require android-support-v7-appcompat lib, getting many errors, idea can't find theme in xml enter image description here
  5. to remove error, had added library android-support-v7 in project settings, added module \android-sdk\extras\android\support\v7\appcompat\ modules , set android-support-v7 module dependency main android module
  6. 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.

d

you need specify source dir.

right click on com's parent folder, mark directory as , sources root.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -