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:

  1. updated android studio via menu. latest version downloaded google 0.4.2, , able upgrade 0.4.4.
  2. created new project, without fluff.
  3. made sure build project , deploy.
  4. 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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -