Anki báo lỗi the permission on your system năm 2024

[ x ] I have read the support page and am reporting a bug or enhancement request specific to AnkiDroid

[ x ] I have checked the manual and the FAQ and could not find a solution to my issue

[ x ] I have searched for similar existing issues here and on the user forum

Reproduction Steps

  1. This is actually hard to reproduce as this occurs on one user phone only. For example I couldn't reproduce the issue. Expected Result

Export to AnkiDroid from Aedict3 works

Actual Result

For unknown reason the export crashes with the following exception: mvysny/aedict

689

I have double-checked and Aedict3 asks for the necessary permission upon install time: The AndroidManifest.xml lists the permission:

Debug info

Refer to the support page if you are unsure where to get the "debug info".

This needs to be provided by the user as I unfortunately cannot reproduce the issue.

Launching AnkiDroid this logcat is produced.

09-23 21:21:47.398 18391 19178 I Role : com.ichi2.anki not qualified for android.app.role.HOME due to missing RequiredComponent{mIntentFilterData=IntentFilterData{mAction='android.intent.action.MAIN', mCategories='[android.intent.category.HOME]', mDataScheme='null', mDataType='null'}, mMinTargetSdkVersion=1, mPermission='null', mQueryFlags=0, mMetaData=[]} 09-23 21:21:47.401 18391 19178 I Role : com.ichi2.anki not qualified for android.app.role.DIALER due to missing RequiredComponent{mIntentFilterData=IntentFilterData{mAction='android.intent.action.DIAL', mCategories='[]', mDataScheme='null', mDataType='null'}, mMinTargetSdkVersion=1, mPermission='null', mQueryFlags=0, mMetaData=[]} 09-23 21:21:47.404 18391 18642 I Role : com.ichi2.anki not qualified for android.app.role.SMS due to missing RequiredComponent{mIntentFilterData=IntentFilterData{mAction='android.provider.Telephony.SMS_DELIVER', mCategories='[]', mDataScheme='null', mDataType='null'}, mMinTargetSdkVersion=1, mPermission='android.permission.BROADCAST_SMS', mQueryFlags=0, mMetaData=[]} 09-23 21:21:47.406 20072 20072 E AppInfoDashboard: Package: com.ichi2.anki not found for user: 10 09-23 21:21:47.406 20072 20072 E AppInfoDashboard: Package: com.ichi2.anki not found for user: 11 09-23 21:21:47.407 1494 5310 E AppOps : Bad call made by uid 1000. Package "com.ichi2.anki" does not belong to uid -1. 09-23 21:21:47.407 1494 5310 E AppOps : noteOperation 09-23 21:21:47.407 1494 5310 E AppOps : java.lang.SecurityException: Specified package "com.ichi2.anki" under uid -1 but it is not 09-23 21:21:47.407 1494 5310 E AppOps : at com.android.server.appop.AppOpsService.verifyAndGetBypass[AppOpsService.java:4703] 09-23 21:21:47.407 1494 5310 E AppOps : at com.android.server.appop.AppOpsService.noteOperationUnchecked[AppOpsService.java:3466] 09-23 21:21:47.407 1494 5310 E AppOps : at com.android.server.appop.AppOpsService.noteOperationImpl[AppOpsService.java:3454] 09-23 21:21:47.407 1494 5310 E AppOps : at com.android.server.appop.AppOpsService.-$$Nest$mnoteOperationImpl[Unknown Source:0] 09-23 21:21:47.407 1494 5310 E AppOps : at com.android.server.appop.AppOpsService$CheckOpsDelegateDispatcher.lambda$noteOperation$4[AppOpsService.java:7662] 09-23 21:21:47.407 1494 5310 E AppOps : at com.android.server.appop.AppOpsService$CheckOpsDelegateDispatcher.$r8$lambda$oOwUoG55BBmJ6yiwhp3OAq3tQ30[Unknown Source:0] 09-23 21:21:47.407 1494 5310 E AppOps : at com.android.server.appop.AppOpsService$CheckOpsDelegateDispatcher$$ExternalSyntheticLambda3.apply[Unknown Source:32] 09-23 21:21:47.407 1494 5310 E AppOps : at com.android.server.policy.AppOpsPolicy.noteOperation[AppOpsPolicy.java:225] 09-23 21:21:47.407 1494 5310 E AppOps : at com.android.server.appop.AppOpsService$CheckOpsDelegateDispatcher.noteOperation[AppOpsService.java:7660] 09-23 21:21:47.407 1494 5310 E AppOps : at com.android.server.appop.AppOpsService.noteOperation[AppOpsService.java:3438] 09-23 21:21:47.407 1494 5310 E AppOps : at com.android.internal.app.IAppOpsService$Stub.onTransact[IAppOpsService.java:479] 09-23 21:21:47.407 1494 5310 E AppOps : at android.os.Binder.execTransactInternal[Binder.java:1309] 09-23 21:21:47.407 1494 5310 E AppOps : at android.os.Binder.execTransact[Binder.java:1268]

Recently there have been some reports of Anki failing to appear, without any error message showing up. If you run into this situation, you can either:

  • Some users reported that the problems stopped after they disconnected multiple/external displays.
  • Install the latest Anki version [try both qt6 and qt5]
  • Or you can try adjusting your decimal separator if it is not a period.
  • Or you can try the old 2.1.35-alternate build of Anki.

When starting Anki, you may receive a message like the following:

  • Error loading Python DLL
  • The program can't start because api-ms-win.... is missing
  • Failed to execute script runanki
  • Failed to execute script pyi_rth_multiprocessing
  • Failed to execute script pyi_rth_win32comgenpy

These errors are usually because your computer is missing a Windows update or Windows library.

Please open Windows update, and ensure your system has all updates installed. If any needed to be installed, please restart your device after installing.

On Windows 7/8, you may need to manually install extra updates. Please try:

  • //www.microsoft.com/en-us/download/details.aspx?id=48234
  • //aka.ms/vs/15/release/vc_redist.x64.exe
  • //www.catalog.update.microsoft.com/Search.aspx?q=kb4474419
  • //www.catalog.update.microsoft.com/Search.aspx?q=kb4490628

Please see display issues.

If you get a LoadLibrary failed with error 126, this may be caused by the toolkit Anki is built on having trouble with multiple displays.

Third-party software on your machine may prevent Anki from loading. You can try adding an exception to Anki, or temporarily disabling your antivirus/firewall to see if it helps.

Some users have reported that Anki did not run for them until they right-clicked on the Anki icon and chose "Run as administrator". Anki stores all of its data in your user folder, and should not need administrator privileges, but it's something you can try if you've exhausted other options.

If the update process leaves you with multiple Anki installs [such as within`C:\Program Files\Anki` and C:\Program Files [x86]\Anki], they may be left in a non-working state, and Anki may refuse to start without showing an error message.

Try uninstalling all copies - you may be able to do so with the Windows Apps & features settings menu, or by running uninstall.exe in each Anki program folder. Afterward, install Anki again.

Starting Anki from a terminal may reveal a bit more information about some errors. After installing the latest Anki version and ensuring all Windows updates are installed, instead of running Anki directly, use Start>Run and type cmd.exe. When a console window appears, type

cd \program files\anki & anki-console

Presumably Anki will fail to open like before, but it may reveal something about what is causing the problem.

Chủ Đề