./gradlew clean && ./gradlew assemble
fails with errors below. This patch fixes it.
:app:preDexDebug
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/DividerItemDecoration.java:8: error: package android.support.v7.widget does not exist
import android.support.v7.widget.LinearLayoutManager;
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/DividerItemDecoration.java:9: error: package android.support.v7.widget does not exist
import android.support.v7.widget.RecyclerView;
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/DividerItemDecoration.java:13: error: package RecyclerView does not exist
public class DividerItemDecoration extends RecyclerView.ItemDecoration {
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/DividerItemDecoration.java:56: error: cannot find symbol
public void getItemOffsets(Rect outRect, View view, RecyclerView parent,
^
symbol: class RecyclerView
location: class DividerItemDecoration
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/DividerItemDecoration.java:57: error: package RecyclerView does not exist
RecyclerView.State state) {
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/DividerItemDecoration.java:79: error: cannot find symbol
public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) {
^
symbol: class RecyclerView
location: class DividerItemDecoration
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/DividerItemDecoration.java:79: error: package RecyclerView does not exist
public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) {
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/DividerItemDecoration.java:142: error: cannot find symbol
private int getOrientation(RecyclerView parent) {
^
symbol: class RecyclerView
location: class DividerItemDecoration
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/LinearLayoutManager.java:5: error: package android.support.v4.view does not exist
import android.support.v4.view.ViewCompat;
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/LinearLayoutManager.java:6: error: package android.support.v7.widget does not exist
import android.support.v7.widget.RecyclerView;
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/LinearLayoutManager.java:22: error: package android.support.v7.widget does not exist
public class LinearLayoutManager extends android.support.v7.widget.LinearLayoutManager {
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/LinearLayoutManager.java:32: error: cannot find symbol
private final RecyclerView view;
^
symbol: class RecyclerView
location: class LinearLayoutManager
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/LinearLayoutManager.java:52: error: cannot find symbol
public LinearLayoutManager(RecyclerView view) {
^
symbol: class RecyclerView
location: class LinearLayoutManager
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/LinearLayoutManager.java:59: error: cannot find symbol
public LinearLayoutManager(RecyclerView view, int orientation, boolean reverseLayout) {
^
symbol: class RecyclerView
location: class LinearLayoutManager
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/LinearLayoutManager.java:78: error: package RecyclerView does not exist
public void onMeasure(RecyclerView.Recycler recycler, RecyclerView.State state, int widthSpec, int heightSpec) {
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/LinearLayoutManager.java:78: error: package RecyclerView does not exist
public void onMeasure(RecyclerView.Recycler recycler, RecyclerView.State state, int widthSpec, int heightSpec) {
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/LinearLayoutManager.java:230: error: package RecyclerView does not exist
private void measureChild(RecyclerView.Recycler recycler, int position, int widthSize, int heightSize, int[] dimensions) {
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/LinearLayoutManager.java:262: error: package RecyclerView does not exist
private static void makeInsetsDirty(RecyclerView.LayoutParams p) {
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/LinearLayoutManager.java:13: error: reference not found
- {@link android.support.v7.widget.LinearLayoutManager} which wraps its content. Note that this class will always
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/LinearLayoutManager.java:14: error: reference not found
- wrap the content regardless of {@link android.support.v7.widget.RecyclerView} layout parameters.
^
/Users/dkalita/android/android-linear-layout-manager/lib/src/main/java/org/solovyev/android/views/llm/LinearLayoutManager.java:15: error: self-closing element not allowed
-
^
3 errors
18 warnings
:app:preDexDebug FAILED
FAILURE: Build failed with an exception.