我想在后台运行服务,即使该应用被杀死了。此功能在某些设备上运行良好。但是在oppo,mi和vivo手机中,如果应用被杀死,它将无法运行。我如何针对这些设备执行此操作
早些时候我的项目运行时没有错误,但今天我收到以下错误。如果有人可以帮助解决这个问题,我将不胜感激。
注意-我没有在我的应用程序中使用jCenter,支付sdk flutter_stripe使用jCenter
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not resolve com.stripe:stripe-android:20.12.+.
Required by:
project :app > project :stripe_android
> Failed to list versions for com.stripe:stripe-android.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/stripe/stripe-android/maven-metadata.xml.
> Could not HEAD 'https://jcenter.bintray.com/com/stripe/stripe-android/maven-metadata.xml'.
> Read timed out
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option …Run Code Online (Sandbox Code Playgroud)