开发一个简单实用的 本地音乐播放器
先看错误:
Android stduio 3.5.2
SDK 32
android 12
在 AS 中直接 运行报错:
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
解决的方法:
https://stackoverflow.com/questions/69345255/the-application-could-not-be-installed-install-parse-failed-manifest-malformed
修改 SDK 为 30 ,在 AndroidManifest.xml 添加
<activity android:name=".MainActivity" android:exported="true">
先看截图:
清爽简单的音乐播放器太少见了,不管是 XXX 音乐 还是 XX 音乐,都是又难用,又卡,还有广告,听个歌还要开会员。
只是想要一个本地的播放器,就那么难吗?所以,我就自己开发了一个,没有采用任何第三方插件,完全原始的 API 开发。
也没有任何多余的功能,一个 页面就搞定了。
功能清单:
1,扫描手机内存储的音乐,生个一个目录列表,并存储,不用每次打开APP 都扫一次
2,播放列表 可以点击选择播放
3,上下首,暂停,播放,调进度条
4,播放模式:单曲、列表、全部
目前已经做好了这些,打算放 github ,想开发的可以一起。
本人非专业开发APP 的人员。
现已开源:
https://github.com/nejidev/MusicPlayer
一个 GITHUB 提交的问题。
$ git push origin master
Logon failed, use ctrl+c to cancel basic credential prompt.
Username for 'https://github.com': nejidev
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/nejidev/MusicPlayer.git/'
原因是现在已经不支持,那种直接输入用户名密码的提交方式了,需要自己生成一对 公私钥
ssh-keygen.exe
/c/Users/xxxx/.ssh/id_rsa.pub. 把生成的这个公钥配置到 github 里面
$ git remote set-url origin git@github.com:nejidev/MusicPlayer.git
切换协议为 git 协议 ,在推送 就可以了。
$ git push
The authenticity of host 'github.com (20.205.243.166)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,20.205.243.166' (ECDSA) to the list of known hosts.
Enumerating objects: 65, done.
Counting objects: 100% (65/65), done.
Delta compression using up to 8 threads.
Compressing objects: 100% (47/47), done.
Writing objects: 100% (63/63), 77.38 KiB | 289.00 KiB/s, done.
Total 63 (delta 0), reused 0 (delta 0)
To github.com:nejidev/MusicPlayer.git
0f68b7f..8b70a99 master -> master
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· C#/.NET/.NET Core技术前沿周刊 | 第 29 期(2025年3.1-3.9)
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异