Android 如何生成默认的Codename One清单值(以及如何更改它们)?
尝试在Codename One上构建Android应用程序时,我遇到一个构建错误,其中包含以下清单信息:Android 如何生成默认的Codename One清单值(以及如何更改它们)?,android,codenameone,Android,Codenameone,尝试在Codename One上构建Android应用程序时,我遇到一个构建错误,其中包含以下清单信息: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.brooklynwebcenter.app" android:versionCode="100" android:versionName="1.0" xmlns:tools="http://schemas.a
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.brooklynwebcenter.app"
android:versionCode="100"
android:versionName="1.0"
xmlns:tools="http://schemas.android.com/tools"
android:minSdkVersion="15"
android:installLocation="auto">
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="14" />
<supports-screens android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
<application android:label="MyApplication" android:icon="@drawable/icon" android:allowBackup="true" >
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/> <activity android:name="MyApplicationStub"
android:theme="@style/CustomTheme"
android:configChanges="orientation|keyboardHidden|screenSize"
android:launchMode="singleTop"
android:label="MyApplication">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name="com.codename1.impl.android.LocalNotificationPublisher" >
</receiver>
<service android:name="com.codename1.impl.android.BackgroundFetchHandler" android:exported="false" />
<activity android:name="com.codename1.impl.android.CodenameOneBackgroundFetchActivity" android:theme="@android:style/Theme.NoDisplay" />
<activity android:name="com.codename1.location.CodenameOneBackgroundLocationActivity" android:theme="@android:style/Theme.NoDisplay" />
<service android:name="com.codename1.location.BackgroundLocationHandler" android:exported="false" />
<service android:name="com.codename1.location.GeofenceHandler" android:exported="false" />
<service android:name="com.codename1.media.AudioService" android:exported="false" /> </application>
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-permission android:name="android.permission.INTERNET" android:required="false" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:required="false" />
</manifest>
但是没有成功更改权限,例如android.permission.INTERNET
谢谢。目标SDK版本默认为23我猜您在构建提示中更改了某些内容,或者是您的一个CN1lib做了更改
权限是根据API使用的代码名隐式添加的。如果在中使用本机代码,则需要使用android.xpermissions
build提示手动添加权限
internet权限总是隐式添加的,因为它非常基本,如果您真的不需要该权限,您可以使用构建提示android。removeBasePermissions=true
目标SDK版本默认为23。我猜您在构建提示中更改了某些内容,或者您的CN1lib之一做了该更改
权限是根据API使用的代码名隐式添加的。如果在中使用本机代码,则需要使用android.xpermissions
build提示手动添加权限
internet权限总是隐式添加的,因为它非常基本,如果您真的不需要该权限,您可以使用构建提示android.removeBasePermissions=true
谢谢。我没有改变任何构建提示;我只添加了一个渐变依赖项。此外,我没有添加任何特殊的cn1 LIB。这是我注意到发生这种情况的第二个项目。可能是因为我的cn1插件需要更新吗?另外,如何更改其中一个隐式权限值,例如INTERNET
?我不想删除或添加,只需更改值即可。再次感谢。请编辑此帖子并包含您的构建提示或codenameone\u settings.properties内容。您希望以何种方式更改权限?请注意,XML中的权限与API 23+没有多大关系,谢谢。我没有改变任何构建提示;我只添加了一个渐变依赖项。此外,我没有添加任何特殊的cn1 LIB。这是我注意到发生这种情况的第二个项目。可能是因为我的cn1插件需要更新吗?另外,如何更改其中一个隐式权限值,例如INTERNET
?我不想删除或添加,只需更改值即可。再次感谢。请编辑此帖子并包含您的构建提示或codenameone\u settings.properties内容。您希望以何种方式更改权限?请注意,XML中的权限与API 23没有多大关系+