現在、プロジェクトのターゲット sdk は google api レベル 14 であり、正常に動作します。AndroidマニフェストファイルでターゲットSDKをGoogle APIレベル16に変更してプロジェクトを実行すると、メッセージが表示されますunfortunately, app has stopped
。再びレベル 14 に戻すと、実行されます。
誰が理由を教えてもらえますか?
編集: logcatの詳細
05-24 10:57:09.709: E/Trace(981): error opening trace file: No such file or directory (2)
05-24 10:57:11.108: E/AndroidRuntime(981): FATAL EXCEPTION: main
05-24 10:57:11.108: E/AndroidRuntime(981): java.lang.RuntimeException: Unable to create application com.sentry.android.hmi.SentryApp: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.CallLogProvider from ProcessRecord{41321b58 981:com.sentry.android/u0a48} (pid=981, uid=10048) requires android.permission.READ_CALL_LOG or android.permission.WRITE_CALL_LOG
05-24 10:57:11.108: E/AndroidRuntime(981): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4154)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.app.ActivityThread.access$1300(ActivityThread.java:130)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1255)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.os.Handler.dispatchMessage(Handler.java:99)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.os.Looper.loop(Looper.java:137)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.app.ActivityThread.main(ActivityThread.java:4745)
05-24 10:57:11.108: E/AndroidRuntime(981): at java.lang.reflect.Method.invokeNative(Native Method)
05-24 10:57:11.108: E/AndroidRuntime(981): at java.lang.reflect.Method.invoke(Method.java:511)
05-24 10:57:11.108: E/AndroidRuntime(981): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
05-24 10:57:11.108: E/AndroidRuntime(981): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
05-24 10:57:11.108: E/AndroidRuntime(981): at dalvik.system.NativeStart.main(Native Method)
05-24 10:57:11.108: E/AndroidRuntime(981): Caused by: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.CallLogProvider from ProcessRecord{41321b58 981:com.sentry.android/u0a48} (pid=981, uid=10048) requires android.permission.READ_CALL_LOG or android.permission.WRITE_CALL_LOG
05-24 10:57:11.108: E/AndroidRuntime(981): at android.os.Parcel.readException(Parcel.java:1425)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.os.Parcel.readException(Parcel.java:1379)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:2354)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.app.ActivityThread.acquireProvider(ActivityThread.java:4219)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:1703)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1099)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.content.ContentResolver.query(ContentResolver.java:354)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.content.ContentResolver.query(ContentResolver.java:313)
05-24 10:57:11.108: E/AndroidRuntime(981): at com.sentry.android.hmi.SentryApp.onCreate(SentryApp.java:116)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:999)
05-24 10:57:11.108: E/AndroidRuntime(981): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4151)
05-24 10:57:11.108: E/AndroidRuntime(981): ... 10 more