java - Gradle project in Android Studio not importing libraries -
so downloaded template http://www.androidbootstrap.com/ , able compile , deploy after changing few things. however, there errors in every java , layout file. of libraries showing red underlines in imports section , of functions doing same. it's not able find functions when i'm editing, when building seems fine. can fix this?
none of these solutions helped me solve problem. ended creating new project , giving on android bootstrap because never work. things ensure gradle behaves well:
- updated android studio via menu. latest version downloaded google 0.4.2, , able upgrade 0.4.4.
- created new project, without fluff.
- made sure build project , deploy.
- when added libraries, such androidannotations, added them second level gradle.build file , went tools-->refresh project gradle. made sure project built. important because project won't import library until refresh project gradle.
hopefully helps people getting gradle development.
Comments
Post a Comment