草庐IT

task_scheduler_init

全部标签

android - 运行错误 :Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'

运行错误任务':app:transformResourcesWithMergeJavaResForDebug'执行失败所以我在尝试运行我的项目时不断收到gradle构建错误。我搜索了其他解决方案,有人说添加:packagingOptions{exclude'META-INF/NOTICE'exclude'META-INF/LICENSE'//willnotincludeLICENSEfile//asnotedby@Vishnuvathsanyoumayalsoneedtoinclude//variationsonthefilename.Itdependsonyourdependenci

android - 错误 : Execution failed for task ': app: processDebugGoogleServices

我在AndroidStudio中有一个错误。新建activity空白应用,我添加“build.gradle(project)”dependencies{classpath'com.android.tools.build:gradle:2.0.0-alpha9'classpath'com.google.gms:google-services:2.0.0-alpha9'}在“build.gradle(app)”中dependencies{compileFileTree(dir:'libs',include:['*.jar'])compile'com.android.support:appc

android - RxJava 的 subscribeOn 和 observeOn 不会覆盖原来设置的 Scheduler 吗?

我在带有Retrofit2的android中使用了RxJava,并且在subscribe()之前调用了subscribeOn(Schedulers.io())androidobserveOn(AndroidSchedulers.mainThread())global。但是,有时我想调用subscribeOn(Schedulers.immediate())androidobserveOn(Schedulers.immediate())来覆盖之前设置的Schedulers以获得同步过程。但是我发现它不起作用,androidworks仍然会在io()线程上处理,android结果由mainT

android - Android Spatialite 中的 jsqlite.Database.internal_init 中的 java.lang.UnsatisfiedLinkError

我是Android开发和使用Spatialite的新手,无法弄清楚为什么我的应用会因为这个错误而在一些设备上崩溃:java.lang.UnsatisfiedLinkError:Noimplementationfoundforvoidjsqlite.Database.internal_init()(试过Java_jsqlite_Database_internal_1init和Java_jsqlite_Database_internal_1init__)在jsqlite.Database.internal_init(native方法)在jsqlite.Database.(Database.

java - 错误 :Execution failed for task: ExecException: Process 'command ' C:\Program Files\Java\jdk1. 7.0_79\bin\java.exe'' 以非零退出值 2 完成

错误:任务“:app:preDexDebug”执行失败。com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:Process'command'C:\ProgramFiles\Java\jdk1.7.0_79\bin\java.exe''finishedwithnon-zeroexitvalue2dependencies{compilefileTree(dir:'libs',include:['*.jar'])compilefiles('poi-3.13-beta

java.lang.RuntimeException : Failed to init Cipher using FingerPrint 错误

我正在使用指纹sdk,但它总是崩溃。java.lang.RuntimeException:FailedtoinitCipheratcom.example.ammar.fingerbyitself.MainActivity.initCipher(MainActivity.java:160)atcom.example.ammar.fingerbyitself.MainActivity.access$000(MainActivity.java:55)atcom.example.ammar.fingerbyitself.MainActivity$1.onClick(MainActivity.j

android - Firebase JobDispatcher-Scheduled 作业在设备重启时丢失

我正在使用Firebase-JobDispatcher.我已经安排了一些工作,如果我保持设备开关,它工作正常。但是如果我重新启动我的设备,那么计划的工作不会执行或者它不会被重新安排?我已经使用了setLifetime(Lifetime.永远)。设备重启时作业仍然丢失。下面是我使用的代码-JobmyJob=dispatcher.newJobBuilder().setService(MyJobService.class).setTag("DataSend").setRecurring(false).setLifetime(Lifetime.FOREVER).setTrigger(Trigg

android - 错误 :Execution failed for task ':app:processDebugResources' when using font folder inside res

我已将SDK更新到AndroidO开发者预览版,并开始使用单个TextView进行简单演示。当我在res文件夹中包含font时,它开始显示Error:Executionfailedfortask':app:processDebugResources'.>com.android.ide.common.process.ProcessException:Failedtoexecuteaapt这是我的build.gradleandroid{compileSdkVersion25buildToolsVersion"25.0.2"defaultConfig{...minSdkVersion15ta

android - ionic / Cordova FCM : Execution failed for task ':processDebugGoogleServices'

自从我安装了这个NativeFCMPlugin在IonicProject中,我在执行ioniccordovaandroidbuild时总是遇到以下错误:Runwith--stacktraceoptiontogetthestacktrace.Runwith--infoor--debugoptiontogetmorelogoutput.:processDebugGoogleServicesFoundcom.google.android.gms:play-services-base:11.0.4,butversion9.0.0isneededforthegoogle-servicesplug

安卓工作室 3.1 : StackOverflowError when executing task transformClassesWithDexBuilderForDebug when using qoppapdf library

随着AndroidStudio3.1的更新,我们的应用程序构建开始在所有机器上随机中断。在我的机器上,构建在dexing过程中因StackOverflowError而中断。当在gradle.properties中禁用d8和desugaring时,构建通过。这个问题似乎与我们在产品应用程序中使用了几年没有问题的qoppapdf库有关。该问题在新的Android项目中重现,其中库jar包含在libs目录中并且multidex在gradle中使用。StackOverflow错误如下:org.gradle.api.tasks.TaskExecutionException:Executionfa