質問編集履歴

2

コード追記

2020/04/20 15:32

投稿

Jhon_McClane
Jhon_McClane

スコア48

test CHANGED
File without changes
test CHANGED
@@ -13,6 +13,8 @@
13
13
  https://github.com/ArthurHub/Android-Image-Cropper
14
14
 
15
15
 
16
+
17
+ -keep class androidx.appcompat.widget.** { *; }を追記
16
18
 
17
19
  ```ここに言語を入力
18
20
 
@@ -63,3 +65,67 @@
63
65
  -keep class androidx.appcompat.widget.** { *; }
64
66
 
65
67
  ```
68
+
69
+
70
+
71
+ 下のソースコードを書くとMissing classesのエラーがでました
72
+
73
+ ```ここに言語を入力
74
+
75
+ <?xml version="1.0" encoding="utf-8"?>
76
+
77
+ <androidx.cardview.widget.CardView
78
+
79
+ xmlns:android="http://schemas.android.com/apk/res/android"
80
+
81
+ xmlns:app="http://schemas.android.com/apk/res-auto"
82
+
83
+ app:cardElevation="3dp"
84
+
85
+ app:cardUseCompatPadding="true"
86
+
87
+ app:cardCornerRadius="3dp"
88
+
89
+ app:cardBackgroundColor="#fff"
90
+
91
+ app:contentPadding="5dp"
92
+
93
+ android:layout_width="match_parent"
94
+
95
+ android:layout_height="wrap_content">
96
+
97
+
98
+
99
+ <LinearLayout
100
+
101
+ android:layout_width="wrap_content"
102
+
103
+ android:layout_height="match_parent"
104
+
105
+ android:layout_gravity="center_horizontal"
106
+
107
+ android:orientation="horizontal">
108
+
109
+
110
+
111
+ <ImageView
112
+
113
+ android:id="@+id/imageIcon"
114
+
115
+ android:layout_width="100dp"
116
+
117
+ android:layout_height="100dp"
118
+
119
+ android:src="@mipmap/ic_launcher" />
120
+
121
+
122
+
123
+
124
+
125
+ </LinearLayout>
126
+
127
+
128
+
129
+ </androidx.cardview.widget.CardView>
130
+
131
+ ```

1

コード追記

2020/04/20 15:32

投稿

Jhon_McClane
Jhon_McClane

スコア48

test CHANGED
File without changes
test CHANGED
@@ -11,3 +11,55 @@
11
11
 
12
12
 
13
13
  https://github.com/ArthurHub/Android-Image-Cropper
14
+
15
+
16
+
17
+ ```ここに言語を入力
18
+
19
+ ファイル  Gradle Scripts->proguard-rules.pro
20
+
21
+ # Add project specific ProGuard rules here.
22
+
23
+ # You can control the set of applied configuration files using the
24
+
25
+ # proguardFiles setting in build.gradle.
26
+
27
+ #
28
+
29
+ # For more details, see
30
+
31
+ # http://developer.android.com/guide/developing/tools/proguard.html
32
+
33
+
34
+
35
+ # If your project uses WebView with JS, uncomment the following
36
+
37
+ # and specify the fully qualified class name to the JavaScript interface
38
+
39
+ # class:
40
+
41
+ #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
42
+
43
+ # public *;
44
+
45
+ #}
46
+
47
+
48
+
49
+ # Uncomment this to preserve the line number information for
50
+
51
+ # debugging stack traces.
52
+
53
+ #-keepattributes SourceFile,LineNumberTable
54
+
55
+
56
+
57
+ # If you keep the line number information, uncomment this to
58
+
59
+ # hide the original source file name.
60
+
61
+ #-renamesourcefileattribute SourceFile
62
+
63
+ -keep class androidx.appcompat.widget.** { *; }
64
+
65
+ ```