我正在学习Android MySQL教程(
https://www.simplifiedcoding.net/android-mysql-tutorial-to-perform-basic-crud-operation/#Creating-Helper-Classes
)其目的是在Apache服务器(XAMPP包)上构建一个连接到MySQL数据库的Android应用程序。我使用Android Studio(3.0.1)来开发Android部分。
当我尝试运行Android清单文件(允许应用程序访问互联网)中的代码时,我遇到了一个问题。如标题所述,错误为“不支持的类型‘使用权限’”。我试图寻找常见的错误,例如拼写错误,或者我在代码中请求的权限是否确实存在,但我找不到任何有用的方法来修复它。我没有在教程的网站上询问,因为我似乎不太可能得到答案(关于教程的最后一条评论是在2015年10月28日),我也查看了评论,似乎没有人有类似的问题。
代码如下:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ch.jemili.yasmina.myheroapp">
<!-- this is the internet permission -->
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>