質問編集履歴

1

エラーコードとMainActivity.javaのソースコード追記

2020/04/22 08:13

投稿

onakahetta
onakahetta

スコア23

test CHANGED
File without changes
test CHANGED
@@ -66,6 +66,92 @@
66
66
 
67
67
 
68
68
 
69
+ 追記:androidディレクトリでgradlew installDebug --stacktraceを実行
70
+
71
+ ```
72
+
73
+ > Task :app:compileDebugJavaWithJavac FAILED
74
+
75
+ C:\Users\user\Documents\sample_app\SourceCode\sampleApp\android\app\src\main\java\com\sample\sample\app\MainActivity.java:24: エラー: class、interfaceまたはenumがありません
76
+
77
+ .
78
+
79
+ ^
80
+
81
+ エラー1個
82
+
83
+
84
+
85
+ FAILURE: Build failed with an exception.
86
+
87
+
88
+
89
+ * What went wrong:
90
+
91
+ Execution failed for task ':app:compileDebugJavaWithJavac'.
92
+
93
+ > Compilation failed; see the compiler error output for details.
94
+
95
+ ```
96
+
97
+ 追記:MainActivity.javaのソースコード
98
+
99
+ こちらも開発入ってから一度も触っていません。
100
+
101
+ ```java
102
+
103
+ package com.sample.sample.app;
104
+
105
+
106
+
107
+ import android.os.Bundle;
108
+
109
+ import com.facebook.react.ReactActivity;
110
+
111
+ import org.devio.rn.splashscreen.SplashScreen;
112
+
113
+
114
+
115
+ public class MainActivity extends ReactActivity {
116
+
117
+
118
+
119
+ @Override
120
+
121
+ protected void onCreate(Bundle savedInstanceState) {
122
+
123
+ SplashScreen.show(this);
124
+
125
+ super.onCreate(savedInstanceState);
126
+
127
+ }
128
+
129
+
130
+
131
+ /**
132
+
133
+ * Returns the name of the main component registered from JavaScript. This is used to schedule
134
+
135
+ * rendering of the component.
136
+
137
+ */
138
+
139
+ @Override
140
+
141
+ protected String getMainComponentName() {
142
+
143
+ return "sampleApp";
144
+
145
+ }
146
+
147
+ }
148
+
149
+ .
150
+
151
+ ```
152
+
153
+
154
+
69
155
  ### 試したこと
70
156
 
71
157