您可以在下面看到我在我的应用中使用的清单文件。它有一些错误,而且没有编译。我无法弄清楚错误。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.practice.vengicx.locatecash">
<uses-feature android:glEsVersion="@integer/google_play_services_version"
android:required="true"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyBuVtdAa57JQb9onxgyZ4we5VrRT9xvHqQ"/>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
错误类似于:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs
Attribute uses-feature#@integer/google_play_services_version@glEsVersion at AndroidManifest.xml:4:19-78 is not a valid hexadecimal 32 bit value, found @integer/google_play_services_version
答案 0 :(得分:1)
android:glEsVersion="@integer/google_play_services_version"
该财产肯定不具备该价值。
有关可接受值的信息,请参阅https://developer.android.com/guide/topics/graphics/opengl.html#manifest。
答案 1 :(得分:0)
嘿伙计们得到了解决,非常感谢你使用glEsVersion作为0x00020000