2014-04-04 93 views
-1

我正在嘗試開發一個需要用戶錄製語音的Android應用程序。 我下面就http://developer.android.com/guide/topics/media/audio-capture.htmlAndroid語音錄製

Eclipse的開發者指南給了我這個錯誤在我的清單文件

The prefix "adroid" for attribute "adroid:name" associated with an element type "uses-  permission" is not bound.` 

這是我的清單文件

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.example.rectest" 
android:versionCode="1" 
android:versionName="1.0" > 

<uses-sdk 
    android:minSdkVersion="10" 
    android:targetSdkVersion="19" /> 

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 
<uses-permission android:name="android.permission.RECORD_AUDIO"/> 


<application 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 
    <activity 
     android:name="com.example.rectest.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> 
    </application> 

    </manifest> 
+0

看起來像Android是拼錯了某處在XML文件中的項目,但在該文件中我沒有看到任何錯誤。檢查所有的XML文件是否有拼寫錯誤。如果找不到任何東西,請嘗試在Eclipse中清理項目,看看是否解決了這個問題。 – KennyC

+0

你可以在整個項目上做'adroid'的遞歸搜索http://stackoverflow.com/questions/3175035/eclipse-find-in-project – Whitebird

回答

0

看起來像你有一個錯字的錯誤,當你首先寫了代碼。

`The prefix "adroid" for attribute "adroid:name" associated with an element type "uses-  permission" is not bound`.` 

因爲它應該是「android」而不是「adroid」。 您附加的代碼看起來很好,所以您應該嘗試清理並重新構建您的項目。 轉到項目 - >清潔 - >選擇您的項目。如果這樣保持,請嘗試重新啓動日食。

enter image description here