私はアクセス許可を求めるときはいつでも、私のアプリはクラッシュします。マニフェストタグの子として自分のマニフェストに定義されている正しい使用法 - 権限を持っています。何もエラーは出ません。パッケージインストーラが停止したことを示すポップアップと、モニタに表示されるsendUserActionEvent() mView == null
という行が、クラッシュに関連しているかわかりません。ここでアクセス許可の要求に応じてAndroidアプリがクラッシュするのはなぜですか?
は私が権限をお願いスニペットです:
if(ContextCompat.checkSelfPermission(MainActivity.this,
Manifest.permission.INTERNET) != PackageManager.PERMISSION_GRANTED) {
Log.d("MAD", "Internet permission is not enabled!");
requestPermissions(new String[] {Manifest.permission.INTERNET},
PERMISSION_REQUEST_INTERNET);
return null;
}
最小SDKは、サムスンギャラクシーS7にテストし、23に設定されています。そこに自動的にインストール時に付与されるいくつかの権限で、取り消すことができません
09-18 17:25:05.350 9483-9489/mad.mad_test I/art: Debugger is active
09-18 17:25:05.540 9483-9483/mad.mad_test I/System.out: Debugger has connected
09-18 17:25:05.540 9483-9483/mad.mad_test I/System.out: waiting for debugger to settle...
09-18 17:25:05.730 9483-9483/mad.mad_test I/System.out: waiting for debugger to settle...
09-18 17:25:05.930 9483-9483/mad.mad_test I/System.out: waiting for debugger to settle...
09-18 17:25:06.130 9483-9483/mad.mad_test I/System.out: waiting for debugger to settle...
09-18 17:25:06.330 9483-9483/mad.mad_test I/System.out: waiting for debugger to settle...
09-18 17:25:06.530 9483-9483/mad.mad_test I/System.out: waiting for debugger to settle...
09-18 17:25:06.740 9483-9483/mad.mad_test I/System.out: waiting for debugger to settle...
09-18 17:25:06.940 9483-9483/mad.mad_test I/System.out: waiting for debugger to settle...
09-18 17:25:07.130 9483-9483/mad.mad_test I/System.out: waiting for debugger to settle...
09-18 17:25:07.330 9483-9483/mad.mad_test I/System.out: debugger has settled (1339)
09-18 17:25:07.350 9483-9483/mad.mad_test I/InjectionManager: Inside getClassLibPath caller
09-18 17:25:07.380 9483-9483/mad.mad_test W/System: ClassLoader referenced unknown path: /data/app/mad.mad_test-1/lib/arm64
09-18 17:25:07.500 9483-9483/mad.mad_test W/System: ClassLoader referenced unknown path: /data/app/mad.mad_test-1/lib/arm64
09-18 17:25:07.520 9483-9483/mad.mad_test D/InjectionManager: InjectionManager
09-18 17:25:07.520 9483-9483/mad.mad_test D/InjectionManager: fillFeatureStoreMap mad.mad_test
09-18 17:25:07.520 9483-9483/mad.mad_test I/InjectionManager: Constructor mad.mad_test, Feature store :{}
09-18 17:25:07.520 9483-9483/mad.mad_test I/InjectionManager: featureStore :{}
09-18 17:25:07.610 9483-9483/mad.mad_test W/ResourcesManager: getTopLevelResources: /data/app/mad.mad_test-1/base.apk/1.0 running in mad.mad_test rsrc of package mad.mad_test
09-18 17:25:07.620 9483-9483/mad.mad_test D/ContextRelationManager: ContextRelationManager() : FEATURE_ENABLED=true
09-18 17:25:07.620 9483-9483/mad.mad_test D/RelationGraph: garbageCollect()
09-18 17:25:07.620 9483-9483/mad.mad_test W/ResourcesManager: getTopLevelResources: /data/app/mad.mad_test-1/base.apk/1.0 running in mad.mad_test rsrc of package mad.mad_test
09-18 17:25:07.750 9483-9483/mad.mad_test W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-18 17:25:07.830 9483-9483/mad.mad_test D/AbsListView: Get MotionRecognitionManager
09-18 17:25:07.830 9483-9483/mad.mad_test E/MotionRecognitionManager: mSContextService = [email protected]
09-18 17:25:07.830 9483-9483/mad.mad_test E/MotionRecognitionManager: motionService = [email protected]a661eda
09-18 17:25:07.830 9483-9483/mad.mad_test E/MotionRecognitionManager: motionService = [email protected]a661eda
09-18 17:25:07.840 9483-9483/mad.mad_test D/Activity: performCreate Call Injection manager
09-18 17:25:07.840 9483-9483/mad.mad_test I/InjectionManager: dispatchOnViewCreated > Target : mad.mad_test.MainActivity isFragment :false
09-18 17:25:07.870 9483-9483/mad.mad_test D/SecWifiDisplayUtil: Metadata value : SecSettings2
09-18 17:25:07.870 9483-9483/mad.mad_test D/ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{3d6112e I.E...... R.....ID 0,0-0,0}
09-18 17:25:07.880 9483-9534/mad.mad_test D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
09-18 17:25:07.950 9483-9534/mad.mad_test D/libEGL: eglInitialize EGLDisplay = 0x7f83aff178
09-18 17:25:07.950 9483-9534/mad.mad_test I/OpenGLRenderer: Initialized EGL, version 1.4
[ 09-18 17:25:07.960 9483: 9534 D/ ]
ro.exynos.dss isEnabled: 0
09-18 17:25:07.980 9483-9534/mad.mad_test D/mali_winsys: new_window_surface returns 0x3000, [1440x2560]-format:1
09-18 17:25:08.090 9483-9483/mad.mad_test I/InjectionManager: dispatchCreateOptionsMenu :mad.mad_test.MainActivity
09-18 17:25:08.090 9483-9483/mad.mad_test I/InjectionManager: dispatchPrepareOptionsMenu :mad.mad_test.MainActivity
09-18 17:25:08.100 9483-9483/mad.mad_test W/DisplayListCanvas: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
09-18 17:25:08.110 9483-9534/mad.mad_test D/libGLESv1: DTS_GLAPI : DTS is not allowed for Package : mad.mad_test
09-18 17:25:08.200 9483-9483/mad.mad_test D/ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
09-18 17:25:08.240 9483-9483/mad.mad_test I/Timeline: Timeline: Activity_idle id: [email protected] time:304111002
09-18 17:25:18.620 9483-9483/mad.mad_test D/ViewRootImpl: ViewPostImeInputStage processPointer 0
09-18 17:25:18.690 9483-9483/mad.mad_test D/ViewRootImpl: ViewPostImeInputStage processPointer 1
09-18 17:25:18.700 9483-9800/mad.mad_test D/MAD: Internet permission is not enabled!
09-18 17:25:18.830 9483-9534/mad.mad_test D/OpenGLRenderer: endAllActiveAnimators on 0x7f72b30800 (RippleDrawable) with handle 0x7f72b7d7e0
09-18 17:25:18.830 9483-9483/mad.mad_test D/ViewRootImpl: #3 mView = null
ログの猫 – Nas
http://stackoverflow.com/questions/20160737/senduseractionevent-mview-null-after-clicking-on-button リンクをご覧ください http://stackoverflow.comを投稿してください/ questions/23016155/senduseractionevent-mview-null-on-samsung-tab3 –
@Nas posted logcat – ZimGee