安卓应用权限

标签 android google-play android-permissions

<分区>

我刚刚发布了我的应用程序,但我的应用程序权限确实存在问题

我的应用使用了一些额外的权限,例如身份(在设备上查找帐户)和位置(大概位置(基于网络))。

我没有在我的 list xml 中包含任何这些

我想知道为什么我会看到这些以及如何将它们从我的应用程序中移除

我的应用中的权限

enter image description here

AndroidMainfest.xml

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <!--This meta-data tag is required to use Google Play Services.-->
    <meta-data android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version"/>
    <activity
        android:name=".MainActivity"
        android:screenOrientation="portrait"
        android:configChanges="keyboardHidden"
        android:label="@string/app_name" >
        <intent-filter android:label="@string/app_name_short">
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <!--Include the AdActivity configChanges and theme. -->
    <activity android:name="com.google.android.gms.ads.AdActivity"
        android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
        android:theme="@android:style/Theme.Translucent" />

我正在使用的库(build.gradle):

compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
compile 'com.google.android.gms:play-services:7.5.0'
compile files('libs/commons-io-2.4.jar') 

libs/commons-io-2.4 << 这是 Apache Commons 库

最佳答案

您正在使用播放服务的哪些部分?这很可能导致问题。当您很可能只需要广告时,您正在将位置、gcm 等 API 全部编译到您的应用程序中。尝试将 build.gradle 中的行 compile 'com.google.android.gms:play-services:7.5.0' 替换为:

compile 'com.google.android.gms:play-services-ads:7.5.0'

如果您需要其他 API,请在 this list 中找到它们并且只添加您正在使用的那些。

关于安卓应用权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31296065/

相关文章:

java - onResume() 是在 Android 的 onRequestPermissionsResult() 之后调用的吗?

android - 由于Android 6.0监听PhoneStateListener.LISTEN_DATA_CONNECTION_STATE的变化似乎不再需要READ_PHONE_STATE权限

java - 交换 Activity 后如何保持 countDownTimer 计数?

android - 是否可以在 Android 应用程序安装期间强制执行 EULA?

android - Android 应用中的 Google Adsense

android - 找不到浏览器的提供商信息

android - 是否可以在 list 文件中提及要过滤的设备的 Android 版本?

android - 使用 Kotlin 协程调用多个 API 请求并等待响应

android - RxJavaErrorHandler 能否防止错误导致 Android 应用程序崩溃?

android - 在 Gplay 上发布了一个应用程序。安装后,我永远无法打开应用程序