Closed sbellver closed 2 years ago
Maybe the README needs an update:
import android.os.Bundle;
import com.getcapacitor.BridgeActivity;
import com.getcapacitor.community.facebooklogin.FacebookLogin;
public class MainActivity extends BridgeActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
registerPlugin(com.getcapacitor.community.facebooklogin.FacebookLogin.class);
}
}
First, we need to import add import android.os.Bundle; not sure if import com.getcapacitor.community.facebooklogin.FacebookLogin; is mandatory
Capacitor 3 should handle those imports automatically
Same problem. Same fix, ie add import android.os.bundle. npx cap sync didn't magically fix it either. Looks to be a straight up vanilla header requirement for that file.
Is this step needed? Like @stewones said, Capacitor 3 should handle this imports automatically https://capacitorjs.com/docs/updating/3-0#switch-to-automatic-android-plugin-loading
Describe the bug When I change MainActivity class gives an error
To Reproduce Change MainActivity.java and add/override:
Then, when I do nix cap open android: