草庐IT

periodic_update_task_statistic

全部标签

java - 线程 "main"java.lang.NoClassDefFoundError : junit/textui/ResultPrinter After updating to Yosemite 中的异常

我最近将我的系统从Mavericks(OSX)更新到Yosemite。我曾经能够右键单击测试并运行它。现在我得到了异常/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/java-ea-Didea.launcher.port=7541"-Didea.launcher.bin.path=/Applications/AndroidStudio.app/Contents/bin"-Dfile.encoding=UTF-8-classpath"/Applications/AndroidStudio.app/Co

android - Google Play 服务 GCM 10.0.1 要求将 “update” 返回到 9.0.0

我正在尝试构建我的新项目,但出现此错误:Error:Executionfailedfortask':mobile:processDebugGoogleServices'.Pleasefixtheversionconflicteitherbyupdatingtheversionofthegoogle-servicesplugin(informationaboutthelatestversionisavailableathttps://bintray.com/android/android-tools/com.google.gms.google-services/)orupdatingth

android - "Intent.FLAG_ACTIVITY_CLEAR_TASK"如何在pre-honeycomb设备上使用?

背景我需要在某些事件上启动一个Activity(比如通知点击,但它可以是任何其他事件,甚至来自broadcastReceiver),如果其他Activity正在运行,或者至少不提供,它也会关闭所有其他Activity专注于他们。为此,我使用Intent.FLAG_ACTIVITY_CLEAR_TASK旗帜。问题似乎Intent.FLAG_ACTIVITY_CLEAR_TASK标志仅适用于API11(hive)及更高版本。一些网站声称IntentCompat可能会有所帮助,但即使在那里,文档也明确指出:Thisflagwillonlybeobeyedondevicessupporting

android - Intent .FLAG_ACTIVITY_NEW_TASK

我在应用程序未激活的某个日期和时间显示对话框(具有对话框主题的Activity;否则无法执行)。if(!Utils.isApplicationInForeground(context)){Intenti=newIntent(context,DialogActivity.class);i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);context.startActivity(i);}Intent.FLAG_ACTIVITY_NEW_TASK=>所以当我在通过主页按钮(最近的应用程序)显示对话框后启动应用程序时,DialogActivity打开而不是应用

java - 错误 :Execution failed for task

我在Androidstudio中使用Telegram的源代码时遇到了这个问题。所以我使用androidstudiopreview3.0.0beta2,gradle4.1-all.zip,mainsdk:15。我做了一切,但它无法正常工作。错误是:Error:Executionfailedfortask:TMessagesProj:transformDexArchiveWithExternalLibsDexMergerForDebug.java.lang.RuntimeException:java.lang.RuntimeException:com.android.builder.dex

android - Gradle 构建错误 - 在应用程序期间抛出 NullPointerException :compileDebugJava gradle task

每次尝试进行gradle构建时,我都会收到此错误消息。我最近在此之前进行了构建,并且应用程序的创建没有任何问题。我没有对我的build.gradle文件进行任何更改。这是什么原因造成的?:app:preBuild......:app:processDebugResources:app:generateDebugSources:app:compileDebugJavaFAILEDError:Executionfailedfortask':app:compileDebugJava'.>java.lang.NullPointerException我正在使用AndroidStudio版本0.8

安卓解析 : Can't update local user

我的自定义ParseUser对象中有一个名为Approved的自定义bool字段。我们通过网络应用程序将此字段从false更改为true。根据文档,我应该能够在使用fetchInBackground()更改标志后更新currentUser,如下所示:ParseUser.getCurrentUser().fetchInBackground(newGetCallback(){@Overridepublicvoiddone(ParseObjectparseObject,ParseExceptione){Log.v("qwer","fetchedUser:"+((CustomUser)pars

android - 使用 Intent.FLAG_ACTIVITY_MULTIPLE_TASK 安全吗?

背景让我们来看看下一个场景:用户使用具有多项Activity的应用X(如gmail应用)。在应用X上浏览了一下之后,他转到了您的应用。在您的应用中,您需要使用Intent启动此X应用,以转到其中的特定Activity。现在用户在应用X上转到此特定Activity。用户按下后退按钮,希望返回到您的应用,而不是停留在应用X上。另一个类似的场景:用户在Activity之间浏览您的应用。您的应用进入后台(例如使用主页按钮)。您的应用会显示一条通知,一旦点击,它将打开您应用的特定Activity。用户点击通知并转到您应用的特定Activity。用户按下后退按钮,希望返回到在点击通知之前显示的应用

Flutter Run 启动失败 Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac‘

flutterrunRunning"flutterpubget"inmain1...               703msUsinghardwarerenderingwithdevicesdkgphone64x8664.Ifyounoticegraphicsartifacts,considerenablingsoftwarerenderingwith"--enable-software-rendering".Launchinglib\main.dartonsdkgphone64x8664indebugmode...FAILURE:Buildfailedwithanexception.*Wha

安卓 : Create a single task with multiple applications' activities (Lauchmode issue)

我不知道如何解决这个Android问题。简而言之,我的2个应用程序之间的流程如下:流将应用程序A绑定(bind)到市场应用程序(AIDL)中的服务注册BroadcastReceiver并调用返回pendingIntent的服务方法。启动PendingIntent(包含BillingActivity实例)。使用“startActivityForResult()”启动PaymentActivity。做一些事情,终止(finish())。在onActivitiyResult()方法中,发送广播并终止。获取广播信息。问题:我想创建一个包含以下组件的任务:Top1Activity(应用程序A)B