-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package doesn't work, When i am executing, the App is closing. #24
Comments
What do you mean "when I am executing, the app is closing"? |
If your app is crashing, don't you think the stacktrace in |
that command for mac i guess. i use windows 10. C:\src\flutter_projects\back_work>adb logcat |
yes i did it. logs
|
i tried my cell-phone (with usb cable) too. |
|
yes that is my app's name. did you check my AndroidManifest.xml? maybe the error is there. |
It's assumed that you'd understand that you need to change the namespace of the copied +package com.example.back_work;
import com.transistorsoft.flutter.backgroundfetch.BackgroundFetchPlugin;
import com.transistorsoft.flutter.backgroundgeolocation.FLTBackgroundGeolocationPlugin;
import io.flutter.app.FlutterApplication;
import io.flutter.plugin.common.PluginRegistry;
import io.flutter.plugins.GeneratedPluginRegistrant;
public class Application extends FlutterApplication implements PluginRegistry.PluginRegistrantCallback {
@Override
public void onCreate() {
super.onCreate();
FLTBackgroundGeolocationPlugin.setPluginRegistrant(this);
BackgroundFetchPlugin.setPluginRegistrant(this);
}
@Override
public void registerWith(PluginRegistry registry) {
GeneratedPluginRegistrant.registerWith(registry);
}
} |
Yes, it is working now. Problem solved. You must remind it, in that page: https://github.com/transistorsoft/flutter_background_fetch/blob/master/help/INSTALL-ANDROID.md |
I always see this text: "Running Gradle task 'assembleDebug'..." and it is never end.
background_fetch
flutter info
,flutter doctor
):flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17134.706], locale tr-TR)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.3)
[√] VS Code (version 1.33.1)
[√] Connected device (1 available)
• No issues found!
AndroidManifest.xml :
The text was updated successfully, but these errors were encountered: