学习桌面时钟中遇到的问题
作者:互联网
学习的博客地址:https://www.cnblogs.com/jzssuanfa/p/7105073.html
Android Studio 新建一个No Activity的项目后,按照上述博客操作之后
遇到的问题:
1. Default Activity Not Found
解决办法:Run/Debug Configuration -> Android App -> app -> General -> Launch Options -> Launch -> Nothing
2. 运行后并未显示时间数据
解决办法:在AndroidManifest.xml中 添加所需权限
application上添加:<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
service 中新增 android:permission="android.permission.BIND_REMOTEVIEWS"
3.Not allowed to start service Intent
解决办法:https://blog.csdn.net/qq_34912760/article/details/105357031?spm=1001.2014.3001.5502
标签:解决办法,桌面,service,遇到,Launch,https,Android,android,时钟 来源: https://www.cnblogs.com/uoky/p/15975123.html