简体   繁体   中英

Service not working in Kotlin Multiplatform Application

I have Backend service my Application in Android native part. It was working fine but suddenly stoped working. I have tried everything and looked into every piece of code but not found any issue.

I am calling service from Activiy as follows:

Intent(this, TestService::class.java).also { intent ->
startService(intent)

AndroidManifest.xml:

<service
android:name=".Services.TestService"
android:enabled="true"
android:exported="true">
</service>

Solved the Problem. The issue was the Package name should be of only small letters then it can register properly in Manifest.XML.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM