从我的活动中,我开始了一个新的活动,定义了它的意图。然后我开始新的活动。
现在,假设在方法A中发生了这种情况:
A {
/*
*
*
*/
startActivity(i); // where i is the intent for new Acivity
/*
*
*
*/
}
现在发生的情况是,即使在我开始之前,启动活动之后的语句也会被执行。我希望当我开始'i‘时,当前的类暂停'i’开始,在'i‘结束后,这个类从那个点恢复吗?
有可能这样做吗?
我的梯度突然停止工作了。目前的配置是:
环境变量为GRADLE_HOME,指向Gradle-3.2.1
只需在命令提示符中运行命令gradle,我得到以下消息:
* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
使用debug运行会提供以下附加消息:
23:11:45.439 [INFO] [org.gradle.internal.nativeintegration.services