Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/309.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/223.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java “;无法启动服务意图”;从Android中的活动启动服务时出错_Java_Android_Eclipse_Android Intent - Fatal编程技术网

Java “;无法启动服务意图”;从Android中的活动启动服务时出错

Java “;无法启动服务意图”;从Android中的活动启动服务时出错,java,android,eclipse,android-intent,Java,Android,Eclipse,Android Intent,下面是错误的确切描述- Unable to start service Intent {cmp=com.example.firstapp/com.radiusnetworks.ibeacon.IBeaconIntentProcessor (has extras) } U=0: not found 这是我的android manifest.xml <manifest xmlns:android="http://schemas.android.com/apk/res/android" pac

下面是错误的确切描述-

Unable to start service Intent {cmp=com.example.firstapp/com.radiusnetworks.ibeacon.IBeaconIntentProcessor (has extras) } U=0: not found
这是我的android manifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.firstapp"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="18"
    android:targetSdkVersion="18" />
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>

<application

    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="com.example.firstapp.MainActivity"
        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:enabled="true"
    android:exported="true"
    android:isolatedProcess="false"
    android:label="iBeacon"
    android:name="com.radiusnetworks.ibeacon.service.IBeaconService">
<meta-data android:name="background" android:value="true" />
    <intent-filter 
       android:priority="1" >
        <action android:name="com.example.firstapp.DID_RANGING" />
        <action android:name="com.example.firstapp.DID_MONITORING" />
    </intent-filter>
</service>

我不熟悉android和Java,但我真的必须让它工作起来。
提前谢谢

您没有注册名为
IBeaconIntentProcessor
的服务,哪个包是

com.radiusnetworks.ibeacon
这就是它找不到服务的原因

您已经注册了一个服务
IBeaconService
,以及哪个包是

com.radiusnetworks.ibeacon.service
Manifest.xml
中注册您的
服务
,如下所示

<service android:name="com.radiusnetworks.ibeacon.IBeaconIntentProcessor">


显示启动服务的代码如何在此文件中注册?我已更新了您的更改。现在,同样的一句话正在重复——“试图通过intent:ComponentInfo{com.example.firstapp/com.radiusnetworks.ibeacon.IBeaconIntentProcessor}”回调,但看不到您的代码,这很难说了。正在工作…:)我使用的蓝牙设备有蓝牙版本3.0。我需要4.0,所以我更换了设备,现在一切正常。。。谢谢你,哈米德。