質問編集履歴
1
build gradleの中身を追加しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,7 +7,27 @@
|
|
7
7
|
そこでprojectと同期時は問題なく完了し、実機、またはエミュレーター(nexsus9 api28)でdebug実行時、コンパイルエラーが出てしまっていて、対処法がわかりません。
|
8
8
|
御教授願いたいです。
|
9
9
|
|
10
|
-
app/build_gradle
|
10
|
+
app/build_gradle
|
11
|
+
”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
|
12
|
+
buildscript {
|
13
|
+
repositories {
|
14
|
+
maven { url 'https://maven.fabric.io/public' }
|
15
|
+
}
|
16
|
+
|
17
|
+
dependencies {
|
18
|
+
classpath 'io.fabric.tools:gradle:1.+'
|
19
|
+
}
|
20
|
+
}
|
21
|
+
apply plugin: 'com.android.application'
|
22
|
+
apply plugin: 'io.fabric'
|
23
|
+
apply plugin: 'me.tatarka.retrolambda'
|
24
|
+
|
25
|
+
repositories {
|
26
|
+
maven { url 'https://maven.fabric.io/public' }
|
27
|
+
}
|
28
|
+
|
29
|
+
def APPNAME = "省略"
|
30
|
+
|
11
31
|
android {
|
12
32
|
compileSdkVersion 25
|
13
33
|
buildToolsVersion '26.0.2'
|
@@ -18,16 +38,121 @@
|
|
18
38
|
versionName '20171026'
|
19
39
|
multiDexEnabled true
|
20
40
|
ndk {
|
21
|
-
|
41
|
+
abiFilters 'x86', 'armeabi-v7a'
|
22
42
|
}
|
23
43
|
}
|
44
|
+
flavorDimensions "service"
|
24
45
|
|
46
|
+
externalNativeBuild {
|
47
|
+
cmake {
|
48
|
+
path 'CMakeLists.txt'
|
49
|
+
}
|
50
|
+
}
|
25
51
|
|
52
|
+
dataBinding {
|
53
|
+
enabled = true
|
54
|
+
}
|
26
55
|
|
56
|
+
compileOptions {
|
57
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
58
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
59
|
+
}
|
60
|
+
|
61
|
+
buildTypes {
|
62
|
+
debug {
|
63
|
+
applicationIdSuffix ".debug"
|
64
|
+
buildConfigField 'boolean', 'DEBUG_UI', 'true'
|
65
|
+
buildConfigField 'String', 'BASE_URL', '省略'
|
66
|
+
buildConfigField 'String', 'BASE_URL_CONTENTS', '省略'
|
67
|
+
}
|
68
|
+
|
69
|
+
release {
|
70
|
+
minifyEnabled true
|
71
|
+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
72
|
+
buildConfigField 'boolean', 'DEBUG_UI', 'false'
|
73
|
+
buildConfigField 'String', 'BASE_URL', '省略'
|
74
|
+
buildConfigField 'String', 'BASE_URL_CONTENTS', '省略'
|
75
|
+
}
|
76
|
+
}
|
77
|
+
productFlavors {
|
78
|
+
treasurebox {
|
79
|
+
applicationId '省略'
|
80
|
+
manifestPlaceholders = [appName: "${APPNAME}"]
|
81
|
+
buildConfigField 'String', 'APP_ID', '\"zLeYTK8S5kJC5bjT\"'
|
82
|
+
versionCode 13
|
83
|
+
versionName '20180412'
|
84
|
+
dimension "service"
|
85
|
+
}
|
86
|
+
|
87
|
+
wiz {
|
88
|
+
applicationId '省略'
|
89
|
+
manifestPlaceholders = [appName: "${APPNAME} Wiz"]
|
90
|
+
buildConfigField 'String', 'APP_ID', '\"1NzcfgEBTZ2sKG1M\"'
|
91
|
+
versionCode 13
|
92
|
+
versionName "1.3.4"
|
93
|
+
dimension "service"
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
useLibrary 'org.apache.http.legacy'
|
98
|
+
|
99
|
+
applicationVariants.all { variant ->
|
100
|
+
if (variant.buildType.name.equals("release")) {
|
101
|
+
variant.outputs.all { output ->
|
102
|
+
if (output.outputFile != null && output.outputFile.name.endsWith('.apk')) {
|
103
|
+
// Rename APK
|
104
|
+
def appName = "app"
|
105
|
+
def versionCode = versionCode
|
106
|
+
def versionName = versionName
|
107
|
+
def newName = "${appName}_r${versionCode}_v${versionName}.apk"
|
108
|
+
outputFileName = newName
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
dependencies {
|
116
|
+
compile fileTree(include: ['*.jar'], dir: 'libs')
|
117
|
+
compile 'com.android.support:recyclerview-v7:25.3.1'
|
118
|
+
compile 'com.squareup.retrofit2:retrofit:2.2.0'
|
119
|
+
compile 'com.squareup.retrofit2:converter-gson:2.2.0'
|
120
|
+
compile 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
|
121
|
+
compile 'com.squareup.okhttp3:logging-interceptor:3.6.0'
|
122
|
+
compile 'com.google.code.gson:gson:2.7'
|
123
|
+
compile 'com.squareup.picasso:picasso:2.5.2'
|
124
|
+
compile 'com.facebook.stetho:stetho:1.3.1'
|
125
|
+
compile 'com.facebook.stetho:stetho-okhttp3:1.3.1'
|
126
|
+
|
127
|
+
compile 'io.reactivex.rxjava2:rxjava:2.0.5'
|
128
|
+
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
|
129
|
+
|
130
|
+
compile 'com.airbnb.android:lottie:2.0.0-beta4'
|
131
|
+
|
132
|
+
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
|
133
|
+
compile 'com.jakewharton.threetenabp:threetenabp:1.0.5'
|
134
|
+
compile 'com.jakewharton.timber:timber:4.5.1'
|
135
|
+
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
|
136
|
+
transitive = true;
|
137
|
+
}
|
138
|
+
compile 'io.intercom.android:intercom-sdk-base:3.+'
|
139
|
+
compile 'io.intercom.android:intercom-sdk-fcm:3.+'
|
140
|
+
compile 'org.apache.commons:commons-lang3:3.5'
|
141
|
+
testCompile 'junit:junit:4.12'
|
142
|
+
androidTestCompile 'com.android.support:support-annotations:25.3.1'
|
143
|
+
androidTestCompile 'com.android.support.test:runner:0.5'
|
144
|
+
}
|
145
|
+
”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
”””””””””””””””””””””””””
|
27
150
|
gradle version 4.1
|
28
151
|
プラグイン version 3.0.1
|
152
|
+
”””””””””””””””””””””””””
|
29
153
|
|
30
154
|
|
155
|
+
|
31
156
|
```
|
32
157
|
エラーメッセージ
|
33
158
|
```
|