This is my MainActivity.java:
package com.drodriguez.my_rents;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.engine.FlutterEngine;
public class MainActivity extends FlutterActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
super.configureFlutterEngine(flutterEngine);
// FlutterYodo1Mas.getInstance().build(flutterEngine, this);
}
}
With that line commented it compiles ok but otherwise I get this with no more information:
MainActivity.java:21: error: cannot find symbol
FlutterYodo1Mas.getInstance().build(flutterEngine, this);
^
symbol: variable FlutterYodo1Mas
location: class MainActivity
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
More info: paste.ofcode.org/3bYrZ9afhH7YZWBkGwcTJWk
I tried removing /android/.gradle folder.
FlutterYodo1Mas.java is placed next to the MainActivity. I use Flutter but I don't think it's related to this error since these 2 files are .java