teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

書式の改善

2020/07/05 12:33

投稿

kazuki_user
kazuki_user

スコア147

title CHANGED
File without changes
body CHANGED
@@ -70,8 +70,7 @@
70
70
 
71
71
  尚、```C:\Users\81907\AndroidStudioProjects\flutter1\android\build.gradle' line: 28```は以下です。
72
72
 
73
- また、上記エラーはflutter1・2みで、flutter3では正常動作しました
73
+ (エラーはflutter123全てアプリおいて発生)
74
- (そのときrunしていたアプリであったから..?でしょうか..?)
75
74
 
76
75
  ```Flutter
77
76
  rootProject.buildDir = '../build'

2

書式の改善

2020/07/05 12:33

投稿

kazuki_user
kazuki_user

スコア147

title CHANGED
File without changes
body CHANGED
@@ -70,6 +70,9 @@
70
70
 
71
71
  尚、```C:\Users\81907\AndroidStudioProjects\flutter1\android\build.gradle' line: 28```は以下です。
72
72
 
73
+ また、上記エラーはflutter1・2のみで、flutter3では正常に動作しました。
74
+ (そのときrunしていたアプリであったから..?でしょうか..?)
75
+
73
76
  ```Flutter
74
77
  rootProject.buildDir = '../build'
75
78
  subprojects {

1

書式の改善

2020/07/05 12:30

投稿

kazuki_user
kazuki_user

スコア147

title CHANGED
File without changes
body CHANGED
@@ -42,4 +42,45 @@
42
42
  皆さんはApplication IDを変更したのち、ホーム画面にアプリを表示しているのですか?
43
43
 
44
44
 
45
- 尚、僕のアプリは公開前なのでApplication IDの変更の弊害はないかと思います。
45
+ 尚、僕のアプリは公開前なのでApplication IDの変更の弊害はないかと思います。
46
+
47
+
48
+ ### エラー追記
49
+
50
+ ```error
51
+ FAILURE: Build failed with an exception.
52
+
53
+ * Where:
54
+ Build file 'C:\Users\81907\AndroidStudioProjects\flutter1\android\build.gradle' line: 28
55
+
56
+ * What went wrong:
57
+ A problem occurred evaluating root project 'android'.
58
+ > Project with path 'android' could not be found in project ':app'.
59
+
60
+ * Try:
61
+ Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
62
+
63
+ * Get more help at https://help.gradle.org
64
+
65
+ BUILD FAILED in 2s
66
+ Exception: Gradle task assembleDebug failed with exit code 1
67
+ ```
68
+
69
+ ---
70
+
71
+ 尚、```C:\Users\81907\AndroidStudioProjects\flutter1\android\build.gradle' line: 28```は以下です。
72
+
73
+ ```Flutter
74
+ rootProject.buildDir = '../build'
75
+ subprojects {
76
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
77
+ }
78
+ subprojects {
79
+ project.evaluationDependsOn(':app')   <--------line: 28
80
+ }
81
+
82
+ task clean(type: Delete) {
83
+ delete rootProject.buildDir
84
+ }
85
+
86
+ ```