08-16 01:32:28.900: ERROR/AndroidRuntime(303): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.wjs/com.wjs.service.Mp3DownloadService}; have you declared this activity in your AndroidManifest.xml?
今天这个错误纠缠我好久,老提示我没在AndroidManifest.xml注册,但是我已经注册了呀
<?xml version="1.0" encoding="utf-8" ?>
- <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.wjs" android:versionCode="1" android:versionName="1.0">
<uses-sdk android:minSdkVersion="7" />
- <application android:icon="@drawable/icon" android:label="@string/app_name">
- <activity android:name=".Test" android:label="@string/app_name">
- <intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name=".service.Mp3DownloadService" />
</application>
</manifest>
我上网找过有的说路径有问题,可是我什么路径都尝试过了,像全路径com.wjs.service.Mp3DownloadService,service.Mp3DownloadService等都不行!
今天这个错误纠缠我好久,老提示我没在AndroidManifest.xml注册,但是我已经注册了呀
<?xml version="1.0" encoding="utf-8" ?>
- <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.wjs" android:versionCode="1" android:versionName="1.0">
<uses-sdk android:minSdkVersion="7" />
- <application android:icon="@drawable/icon" android:label="@string/app_name">
- <activity android:name=".Test" android:label="@string/app_name">
- <intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name=".service.Mp3DownloadService" />
</application>
</manifest>
我上网找过有的说路径有问题,可是我什么路径都尝试过了,像全路径com.wjs.service.Mp3DownloadService,service.Mp3DownloadService等都不行!
解决方案 »
- Camera启动过慢,应该从哪下手处理?
- 求高人指点 免费离线地图使用 并且可以自定义加载影像和矢量文件
- 从零开始学习android,并结合做项目的知识积累。
- android webview flash 待机回来后继续播放!
- android 下如何根据程序包名来阻止应用程序联网
- 摄像头 效果调试
- 百度地图路径搜索只有第一次运行显示,返回再进入就不显示了,还有mSearch第一次运行无数据
- android cts test fail --有大神能帮帮我么?
- android中如何如何让dailog横屏显示
- BluetoothLeScanner中 onScanResult()的内容如何获取
- 如何将别人写好的apk文件,加载到,eclipse启动的Virtual devices中?
- 配置高的电脑启动android模拟器速度反而下降了,为什么?
这个提示,怎么好像是找了两次?把.去掉试试。或者写上完整的路径名
是把
startService(intent);
写成startActivity(intent);
自做聪明了 其实学android最大的阻力是英文API 其他没什么