我正在尝试将OssLicensesMenuActivity
添加到我的android项目中。我正在使用此docs
运行时出现错误java.lang.RuntimeException: An error occurred while executing doInBackground()
02-06 14:47:36.192 3152-8300/? E/ActivityTrigger: activityStartTrigger: not whiteListedaabasoft.geomark/com.google.android.gms.oss.licenses.OssLicensesMenuActivity/21
02-06 14:47:36.192 3152-8300/? E/ActivityTrigger: activityResumeTrigger: not whiteListedaabasoft.geomark/com.google.android.gms.oss.licenses.OssLicensesMenuActivity/21
02-06 14:47:36.206 3152-12605/? E/ActivityTrigger: activityResumeTrigger: not whiteListedaabasoft.geomark/com.google.android.gms.oss.licenses.OssLicensesMenuActivity/21
02-06 14:47:36.281 13828-14796/aabasoft.geomark E/AndroidRuntime: FATAL EXCEPTION: ModernAsyncTask #1
Process: aabasoft.geomark, PID: 13828
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.support.v4.content.ModernAsyncTask$3.done(ModernAsyncTask.java:164)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
at java.util.concurrent.FutureTask.run(FutureTask.java:271)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Caused by: android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f060011
at android.content.res.ResourcesImpl.getResourcePackageName(ResourcesImpl.java:261)
at android.content.res.Resources.getResourcePackageName(Resources.java:1949)
at com.google.android.gms.internal.oss_licenses.zzc.zza(Unknown Source:10)
at com.google.android.gms.internal.oss_licenses.zzc.zza(Unknown Source:12)
at com.google.android.gms.oss.licenses.zzb.loadInBackground(Unknown Source:4)
at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:307)
at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:60)
at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:48)
at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:141)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)