質問編集履歴
2
その他修正。
title
CHANGED
File without changes
|
body
CHANGED
@@ -45,6 +45,7 @@
|
|
45
45
|
}
|
46
46
|
}
|
47
47
|
```
|
48
|
+
```
|
48
49
|
apply plugin: 'com.android.application'
|
49
50
|
apply plugin: 'kotlin-android'
|
50
51
|
apply plugin: 'kotlin-android-extensions'
|
@@ -87,6 +88,7 @@
|
|
87
88
|
|
88
89
|
}
|
89
90
|
```
|
91
|
+
```
|
90
92
|
<?xml version="1.0" encoding="utf-8"?>
|
91
93
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
92
94
|
xmlns:tools="http://schemas.android.com/tools"
|
@@ -122,4 +124,5 @@
|
|
122
124
|
こちらのHPの情報を利用しました。
|
123
125
|
→https://qiita.com/Toya-Onodera/items/7311e03917dea78f67ee
|
124
126
|
|
125
|
-
使用機器はHUAWEI MediaPad T5
|
127
|
+
使用機器はHUAWEI MediaPad T5
|
128
|
+
AndroidのバージョンはOreo(26)です。
|
1
[20/7/21]build.gradle、AndroidManifest.xml、使用機器について追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -45,7 +45,74 @@
|
|
45
45
|
}
|
46
46
|
}
|
47
47
|
```
|
48
|
+
apply plugin: 'com.android.application'
|
49
|
+
apply plugin: 'kotlin-android'
|
50
|
+
apply plugin: 'kotlin-android-extensions'
|
48
51
|
|
52
|
+
android {
|
53
|
+
compileSdkVersion 30
|
54
|
+
buildToolsVersion "30.0.0"
|
55
|
+
|
56
|
+
defaultConfig {
|
57
|
+
applicationId "com.websarva.wings.android.qr_ja1"
|
58
|
+
minSdkVersion 26
|
59
|
+
targetSdkVersion 26
|
60
|
+
versionCode 1
|
61
|
+
versionName "1.0"
|
62
|
+
|
63
|
+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
64
|
+
}
|
65
|
+
|
66
|
+
buildTypes {
|
67
|
+
release {
|
68
|
+
minifyEnabled false
|
69
|
+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
dependencies {
|
75
|
+
implementation fileTree(dir: "libs", include: ["*.jar"])
|
76
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
77
|
+
implementation 'androidx.core:core-ktx:1.3.0'
|
78
|
+
implementation 'androidx.appcompat:appcompat:1.1.0'
|
79
|
+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
80
|
+
testImplementation 'junit:junit:4.12'
|
81
|
+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
82
|
+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
83
|
+
|
84
|
+
implementation 'com.journeyapps:zxing-android-embedded:4.0.2'
|
85
|
+
implementation 'androidx.appcompat:appcompat:1.1.0'
|
86
|
+
implementation 'com.google.zxing:core:3.4.0'
|
87
|
+
|
88
|
+
}
|
89
|
+
```
|
90
|
+
<?xml version="1.0" encoding="utf-8"?>
|
91
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
92
|
+
xmlns:tools="http://schemas.android.com/tools"
|
93
|
+
package="com.websarva.wings.android.qr_ja1">
|
94
|
+
|
95
|
+
<application
|
96
|
+
android:icon="@mipmap/ic_launcher"
|
97
|
+
android:label="@string/app_name"
|
98
|
+
android:roundIcon="@mipmap/ic_launcher_round"
|
99
|
+
android:supportsRtl="true"
|
100
|
+
android:theme="@style/AppTheme"
|
101
|
+
android:hardwareAccelerated="true">
|
102
|
+
<activity android:name="com.journeyapps.barcodescanner.CaptureActivity"
|
103
|
+
android:screenOrientation="fullSensor"
|
104
|
+
tools:replace="screenOrientation" >
|
105
|
+
<intent-filter>
|
106
|
+
<action android:name="android.intent.action.MAIN" />
|
107
|
+
|
108
|
+
<category android:name="android.intent.category.LAUNCHER" />
|
109
|
+
</intent-filter>
|
110
|
+
</activity>
|
111
|
+
</application>
|
112
|
+
|
113
|
+
</manifest>
|
114
|
+
```
|
115
|
+
|
49
116
|
### 試したこと
|
50
117
|
|
51
118
|
gladleのターゲット情報を変更しましたが、特に変わりありませんでした。
|
@@ -53,4 +120,6 @@
|
|
53
120
|
### 補足情報(FW/ツールのバージョンなど)
|
54
121
|
|
55
122
|
こちらのHPの情報を利用しました。
|
56
|
-
→https://qiita.com/Toya-Onodera/items/7311e03917dea78f67ee
|
123
|
+
→https://qiita.com/Toya-Onodera/items/7311e03917dea78f67ee
|
124
|
+
|
125
|
+
使用機器はHUAWEI MediaPad T5 です。
|