質問編集履歴
2
その他修正。
test
CHANGED
File without changes
|
test
CHANGED
@@ -92,6 +92,8 @@
|
|
92
92
|
|
93
93
|
```
|
94
94
|
|
95
|
+
```
|
96
|
+
|
95
97
|
apply plugin: 'com.android.application'
|
96
98
|
|
97
99
|
apply plugin: 'kotlin-android'
|
@@ -176,6 +178,8 @@
|
|
176
178
|
|
177
179
|
```
|
178
180
|
|
181
|
+
```
|
182
|
+
|
179
183
|
<?xml version="1.0" encoding="utf-8"?>
|
180
184
|
|
181
185
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
@@ -246,4 +250,6 @@
|
|
246
250
|
|
247
251
|
|
248
252
|
|
249
|
-
使用機器はHUAWEI MediaPad T5
|
253
|
+
使用機器はHUAWEI MediaPad T5
|
254
|
+
|
255
|
+
AndroidのバージョンはOreo(26)です。
|
1
[20/7/21]build.gradle、AndroidManifest.xml、使用機器について追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -92,6 +92,140 @@
|
|
92
92
|
|
93
93
|
```
|
94
94
|
|
95
|
+
apply plugin: 'com.android.application'
|
96
|
+
|
97
|
+
apply plugin: 'kotlin-android'
|
98
|
+
|
99
|
+
apply plugin: 'kotlin-android-extensions'
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
android {
|
104
|
+
|
105
|
+
compileSdkVersion 30
|
106
|
+
|
107
|
+
buildToolsVersion "30.0.0"
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
defaultConfig {
|
112
|
+
|
113
|
+
applicationId "com.websarva.wings.android.qr_ja1"
|
114
|
+
|
115
|
+
minSdkVersion 26
|
116
|
+
|
117
|
+
targetSdkVersion 26
|
118
|
+
|
119
|
+
versionCode 1
|
120
|
+
|
121
|
+
versionName "1.0"
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
126
|
+
|
127
|
+
}
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
buildTypes {
|
132
|
+
|
133
|
+
release {
|
134
|
+
|
135
|
+
minifyEnabled false
|
136
|
+
|
137
|
+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
}
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
dependencies {
|
148
|
+
|
149
|
+
implementation fileTree(dir: "libs", include: ["*.jar"])
|
150
|
+
|
151
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
152
|
+
|
153
|
+
implementation 'androidx.core:core-ktx:1.3.0'
|
154
|
+
|
155
|
+
implementation 'androidx.appcompat:appcompat:1.1.0'
|
156
|
+
|
157
|
+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
158
|
+
|
159
|
+
testImplementation 'junit:junit:4.12'
|
160
|
+
|
161
|
+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
162
|
+
|
163
|
+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
implementation 'com.journeyapps:zxing-android-embedded:4.0.2'
|
168
|
+
|
169
|
+
implementation 'androidx.appcompat:appcompat:1.1.0'
|
170
|
+
|
171
|
+
implementation 'com.google.zxing:core:3.4.0'
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
}
|
176
|
+
|
177
|
+
```
|
178
|
+
|
179
|
+
<?xml version="1.0" encoding="utf-8"?>
|
180
|
+
|
181
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
182
|
+
|
183
|
+
xmlns:tools="http://schemas.android.com/tools"
|
184
|
+
|
185
|
+
package="com.websarva.wings.android.qr_ja1">
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<application
|
190
|
+
|
191
|
+
android:icon="@mipmap/ic_launcher"
|
192
|
+
|
193
|
+
android:label="@string/app_name"
|
194
|
+
|
195
|
+
android:roundIcon="@mipmap/ic_launcher_round"
|
196
|
+
|
197
|
+
android:supportsRtl="true"
|
198
|
+
|
199
|
+
android:theme="@style/AppTheme"
|
200
|
+
|
201
|
+
android:hardwareAccelerated="true">
|
202
|
+
|
203
|
+
<activity android:name="com.journeyapps.barcodescanner.CaptureActivity"
|
204
|
+
|
205
|
+
android:screenOrientation="fullSensor"
|
206
|
+
|
207
|
+
tools:replace="screenOrientation" >
|
208
|
+
|
209
|
+
<intent-filter>
|
210
|
+
|
211
|
+
<action android:name="android.intent.action.MAIN" />
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
<category android:name="android.intent.category.LAUNCHER" />
|
216
|
+
|
217
|
+
</intent-filter>
|
218
|
+
|
219
|
+
</activity>
|
220
|
+
|
221
|
+
</application>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
</manifest>
|
226
|
+
|
227
|
+
```
|
228
|
+
|
95
229
|
|
96
230
|
|
97
231
|
### 試したこと
|
@@ -109,3 +243,7 @@
|
|
109
243
|
こちらのHPの情報を利用しました。
|
110
244
|
|
111
245
|
→https://qiita.com/Toya-Onodera/items/7311e03917dea78f67ee
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
使用機器はHUAWEI MediaPad T5 です。
|