2
を検出していない私は、この権限を持っているandroidTestマニフェストを持っている:私は、テストを実行するとAndroidTestマニフェスト許可が
しかし<uses-permission android:name="android.permission.SET_ANIMATION_SCALE" />
、このアクセス許可が私のdevDebugビルドで設定されていません。 main/AndroidManifest.xmlに追加した場合にのみ動作します。
全androidTest/AndroidManifest.xmlに、
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.test.mobile">
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="23"
tools:overrideLibrary="android.support.test.uiautomator.v18" />
<uses-permission android:name="android.permission.SET_ANIMATION_SCALE" />
</manifest>
エラー:
Operation not allowed: java.lang.SecurityException: Package com.test.mobile has not requested permission android.permission.SET_ANIMATION_SCALE
私はメインのマニフェストにこの権限を追加する必要はありません。
申し訳ありませんが、どこにバグフォルダを作成しますか? –
@JoeMaher at app/src/devDebug/AndroidManifest.xml 注:「dev」は私のproductFlavor、「Debug」はbuildTypeです –