質問編集履歴
2
補足追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,6 +7,16 @@
|
|
7
7
|
import android.support.v4.content.ContextCompat;
|
8
8
|
|
9
9
|
をimportするとcannot resolve symbolと言われてしまいます。
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
補足として通常andoroidのプロジェクトですとbuild.gradleを変更した
|
14
|
+
|
15
|
+
場合sync nowと同期を促すメッセージが右上に出ますが、flutter plugin
|
16
|
+
|
17
|
+
で作ったこのプロジェクトの場合gradleファイルを更新してもsync nowが
|
18
|
+
|
19
|
+
でてこないのが気になります。
|
10
20
|
|
11
21
|
|
12
22
|
|
1
gradle全文を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,15 +10,83 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
build.gradleに
|
13
|
+
build.gradleにです。
|
14
14
|
|
15
|
-
|
15
|
+
```ここに言語を入力
|
16
16
|
|
17
|
-
|
17
|
+
group 'com.example.flutterpluginspp'
|
18
18
|
|
19
|
+
version '1.0-SNAPSHOT'
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
buildscript {
|
24
|
+
|
25
|
+
repositories {
|
26
|
+
|
27
|
+
google()
|
28
|
+
|
29
|
+
jcenter()
|
30
|
+
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
dependencies {
|
36
|
+
|
19
|
-
|
37
|
+
classpath 'com.android.tools.build:gradle:3.2.1'
|
38
|
+
|
39
|
+
}
|
20
40
|
|
21
41
|
}
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
rootProject.allprojects {
|
46
|
+
|
47
|
+
repositories {
|
48
|
+
|
49
|
+
google()
|
50
|
+
|
51
|
+
jcenter()
|
52
|
+
|
53
|
+
}
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
apply plugin: 'com.android.library'
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
android {
|
64
|
+
|
65
|
+
compileSdkVersion 27
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
defaultConfig {
|
70
|
+
|
71
|
+
minSdkVersion 16
|
72
|
+
|
73
|
+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
74
|
+
|
75
|
+
implementation 'com.android.support:support-compat:27.1.1'
|
76
|
+
|
77
|
+
}
|
78
|
+
|
79
|
+
lintOptions {
|
80
|
+
|
81
|
+
disable 'InvalidPackage'
|
82
|
+
|
83
|
+
}
|
84
|
+
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
```
|
22
90
|
|
23
91
|
|
24
92
|
|