Skip to content

Commit 4c81aad

Browse files
authored
fix: robotics arm crash (#2281)
changed from android to androidx packages
1 parent 9ad94cd commit 4c81aad

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

app/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,7 @@ dependencies {
142142
exclude group: 'com.android.support', module: 'appcompat-v7'
143143
exclude group: 'com.android.support', module: 'design'
144144
}
145+
146+
implementation 'com.android.support:appcompat-v7:28.0.0'
147+
implementation 'com.android.support:design:28.0.0'
145148
}

app/src/main/res/layout/activity_robotic_arm.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:id="@+id/robotic_arm_coordinator"
55
android:layout_width="match_parent"
@@ -12,20 +12,20 @@
1212
android:layout_width="match_parent"
1313
android:layout_height="match_parent">
1414

15-
<android.support.design.widget.AppBarLayout
15+
<com.google.android.material.appbar.AppBarLayout
1616
android:id="@+id/top_app_bar_layout"
1717
android:layout_width="match_parent"
1818
android:layout_height="wrap_content"
1919
android:theme="@style/AppTheme.AppBarOverlay">
2020

21-
<android.support.v7.widget.Toolbar
21+
<androidx.appcompat.widget.Toolbar
2222
android:id="@+id/toolbar"
2323
android:layout_width="match_parent"
2424
android:layout_height="?attr/actionBarSize"
2525
android:background="?attr/colorPrimary"
2626
app:popupTheme="@style/AppTheme.PopupOverlay" />
2727

28-
</android.support.design.widget.AppBarLayout>
28+
</com.google.android.material.appbar.AppBarLayout>
2929

3030
<LinearLayout
3131
android:id="@+id/servo_controller_view"
@@ -122,4 +122,4 @@
122122

123123
<include layout="@layout/bottom_sheet_robotic_arm" />
124124

125-
</android.support.design.widget.CoordinatorLayout>
125+
</androidx.coordinatorlayout.widget.CoordinatorLayout>

0 commit comments

Comments
 (0)