質問編集履歴
2
追記7
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,4 +5,77 @@
|
|
5
5
|
|
6
6
|
※ビルドしたタイミングでエラーが発生しました。
|
7
7
|
|
8
|
+
要望があったので追記しました。allprojectsにhttps://maven.google.comを使っているところがネットには使われてはいない特徴です。
|
9
|
+
```gradle
|
10
|
+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
11
|
+
|
12
|
+
buildscript {
|
13
|
+
repositories {
|
14
|
+
jcenter()
|
15
|
+
}
|
16
|
+
dependencies {
|
17
|
+
classpath 'com.android.tools.build:gradle:2.3.0'
|
18
|
+
|
19
|
+
// NOTE: Do not place your application dependencies here; they belong
|
20
|
+
// in the individual module build.gradle files
|
21
|
+
classpath "io.realm:realm-gradle-plugin:3.7.2"
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
allprojects {
|
27
|
+
repositories {
|
28
|
+
jcenter()
|
29
|
+
maven{
|
30
|
+
url "https://maven.google.com"
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
task clean(type: Delete) {
|
36
|
+
delete rootProject.buildDir
|
37
|
+
}
|
38
|
+
```
|
39
|
+
|
40
|
+
```gradle
|
41
|
+
apply plugin: 'com.android.application'
|
42
|
+
apply plugin: 'realm-android'
|
43
|
+
|
44
|
+
android {
|
45
|
+
compileSdkVersion 28
|
46
|
+
buildToolsVersion "28.0.2"
|
47
|
+
defaultConfig {
|
48
|
+
applicationId "com.websarva.wings.amdrpod.udemyandroid10_2"
|
49
|
+
minSdkVersion 16
|
50
|
+
targetSdkVersion 28
|
51
|
+
versionCode 1
|
52
|
+
versionName "1.0"
|
53
|
+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
54
|
+
}
|
55
|
+
buildTypes {
|
56
|
+
release {
|
57
|
+
minifyEnabled false
|
58
|
+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
dependencies {
|
64
|
+
configurations.all {
|
65
|
+
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
|
66
|
+
}
|
67
|
+
|
68
|
+
compile fileTree(dir: 'libs', include: ['*.jar'])
|
69
|
+
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
|
70
|
+
exclude group: 'com.android.support', module: 'support-annotations'
|
71
|
+
})
|
72
|
+
compile 'com.android.support:appcompat-v7:28.+'
|
73
|
+
compile 'com.android.support.constraint:constraint-layout:1.0.2'
|
74
|
+
compile 'io.realm:android-adapters:2.0.0'
|
75
|
+
testCompile 'junit:junit:4.12'
|
76
|
+
}
|
77
|
+
|
78
|
+
```
|
79
|
+
|
80
|
+
|
8
81
|
初心者でどこを載せるといいのかよく分からない状況です。Activityの中身等、解決に必要な情報は随時載せます。言っていただけると助かります。
|
1
文章追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,4 +3,6 @@
|
|
3
3
|
|
4
4
|

|
5
5
|
|
6
|
-
※ビルドしたタイミングでエラーが発生しました。
|
6
|
+
※ビルドしたタイミングでエラーが発生しました。
|
7
|
+
|
8
|
+
初心者でどこを載せるといいのかよく分からない状況です。Activityの中身等、解決に必要な情報は随時載せます。言っていただけると助かります。
|