<uses-permission>
needs to be a child of the root <manifest>
element. You have it as a child of the <application>
element. So, move the <uses-permission>
element.
So, you have something like:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.whatever">
<application android:icon="@drawable/icon"
android:debuggable="true"
android:label="@string/app_name">
<uses-permission android:name="android.permission.INTERNET"/>
<!-- other stuff here -->
</application>
</manifest>
It needs to be more like:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.whatever">
<uses-permission android:name="android.permission.INTERNET"/>
<application android:icon="@drawable/icon"
android:debuggable="true"
android:label="@string/app_name">
<!-- other stuff here -->
</application>
</manifest>