Skip to content
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

Unable to create service org.autojs.autojs.external.foreground.MainActivityForegroundService #267

Open
iecoder opened this issue Oct 17, 2024 · 0 comments

Comments

@iecoder
Copy link

iecoder commented Oct 17, 2024

Version: 2223
Android: 34
android.os.RemoteException: Remote stack trace:
at com.android.server.am.ActiveServices.setServiceForegroundInnerLocked(ActiveServices.java:2269)
at com.android.server.am.ActiveServices.setServiceForegroundLocked(ActiveServices.java:1883)
at com.android.server.am.ActivityManagerService.setServiceForeground(ActivityManagerService.java:16042)
at android.app.IActivityManager$Stub.onTransact$setServiceForeground$(IActivityManager.java:12028)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3540)

java.lang.RuntimeException:Unable to create service org.autojs.autojs.external.foreground.MainActivityForegroundService: java.lang.IllegalArgumentException: foregroundServiceType 0x00000400 is not a subset of foregroundServiceType attribute 0x40000000 in service element of manifest file
android.app.ActivityThread.handleCreateService(ActivityThread.java:5196)
......
Caused by:
android.os.RemoteException:Remote stack trace:
at com.android.server.am.ActiveServices.setServiceForegroundInnerLocked(ActiveServices.java:2269)
at com.android.server.am.ActiveServices.setServiceForegroundLocked(ActiveServices.java:1883)
at com.android.server.am.ActivityManagerService.setServiceForeground(ActivityManagerService.java:16042)
at android.app.IActivityManager$Stub.onTransact$setServiceForeground$(IActivityManager.java:12028)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3540)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant