不論增刪改查都是這個錯誤,我檢查了uri以及權限,另外也在中加上這句代碼,但還是報錯……
java.lang.SecurityException: Permission Denial: opening provider com.dfby.sqlite.provider.PersonContentProvider from ProcessRecord{163c15b7 3427:com.dfby.useProvider/u0a66} (pid=3427, uid=10066) that is not exported from uid 10062
at android.os.Parcel.readException(Parcel.java:1546)
at android.os.Parcel.readException(Parcel.java:1499)
at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:3320)
at android.app.ActivityThread.acquireProvider(ActivityThread.java:4627)
at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2472)
at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1442)
at android.content.ContentResolver.query(ContentResolver.java:462)
at android.content.ContentResolver.query(ContentResolver.java:422)
at com.dfby.useProvider.ApplicationTest.testProviderQueryAll(ApplicationTest.java:28)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1853)
Permission Denial,你要在mainfeset中什麼對應操作所需要的權限