草庐IT

instant-run

全部标签

android - React-Native run-android 命令问题

当使用React-Native启动android项目时出现此错误:React-NativeCommandrun-androidunrecognized.Didyoumeantorunthisinsideareact-nativeproject? 最佳答案 你可以尝试在react-nativerun-android之前执行npminstall 关于android-React-Nativerun-android命令问题,我们在StackOverflow上找到一个类似的问题:

android - Facebook ,安卓 java.lang.IllegalStateException : Cannot execute task: the task is already running

登录后我可以进行FB查询。几分钟后(玩游戏)Facebook请求失败异常:java.lang.IllegalStateException:Cannotexecutetask:thetaskisalreadyrunning调用失败Request.executeMeRequestAsync(Session.getActiveSession(),newRequest.GraphUserCallback(){...Request.executeGraphPathRequestAsync(Session.getActiveSession(),"me/apprequests",newRequest

android - 设备上出现错误 'ionic run Android'

所以,我只是想在插入的HTCDesire上运行我的应用程序。我采取的步骤是:在listxml中启用调试,在设备本身上启用usb调试,并在androidAVD管理器中创建具有自定义定义的AVD。运行ionicrunandroid--info后出现的错误“无法创建Java虚拟机”“无法为对象堆保留足够的空间”,以及警告“未指定目标,正在部署设备[随机设备编号,我不知道它来自哪里]”这是我的命令窗口的图像:知道为什么我会收到此警告和错误消息吗?它们是相关的问题吗?或者它们是两个不同的问题? 最佳答案 这对我有用GotoStart->Con

android - Google Instant App - 如何使用 Appium 实现自动化

我们知道应用程序需要由浏览器启动,然后应用程序容器会出现缓存的应用程序。但是,我们不知道如何将句柄从浏览器移至应用程序容器。有什么想法吗? 最佳答案 InstantApps的启动方式与DeepLinks的处理方式相同,因此Appium上的方法类似。查看这些以获得帮助Help 关于android-GoogleInstantApp-如何使用Appium实现自动化,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.c

android - shrinkResources true 不能用于 Instant Apps 功能?

当我尝试缩小我的功能APK大小时,我在我的功能构建Gradle中使用shr​​inkResourcestrue。但是它提示Error:Resourceshrinkercannotbeusedforlibraries.这篇文章要求我们使用它https://medium.com/jet-stories/make-your-app-instant-33855ab5d02b是我做错了什么还是InstantApps真的不支持? 最佳答案 据我从这篇文章中了解到(我只是快速阅读了它,仍在我的阅读列表中),shr​​inkResourcestru

安卓 Espresso : Running multiple tests sequentially

我正在尝试使用EspressoforAndroid运行一系列测试。看来在两次运行之间,Activity并未关闭。无论应用在一次测试后的状态如何,都将留给下一次测试。我需要从一个全新的应用程序启动运行我的每个测试。在Robotium中,这是在tearDown()方法中使用solo.finishOpenedActivites()处理的。http://robotium.googlecode.com/svn/doc/com/robotium/solo/Solo.html#finishOpenedActivities()Espresso如何做到这一点? 最佳答案

android - 如何访问 Android Instant App 的模块并将参数传递给模块

对于正常安装的应用程序,可以使用深度链接技术,以便不仅从URL打开特定应用程序,而且还可以将其重定向到特定部分/功能,例如特定Facebook帖子或map上的特定坐标。自从我读到使用InstantApps这将是不可能的,因为链接已经指向要下载和运行的特定模块,如何才能不仅访问所述模块而且还向它传递一些参数?例如:这是我的map应用程序的仅查看模块的下载链接:“www.myinstantappexample.com/onlyviewmap”如果我希望它指向一组特定的坐标,链接将如何组成?会不会像这样:“www.myinstantappexample.com/onlyviewmap/?x=

android - 运行 adb : Error running app. 错误 : Activity not started, 无法解析 Intent

您好,我正在尝试在我的react-native项目上运行“yarnandroid”。并且遇到以下错误:yarnandroidv0.27.5$react-native-scriptsandroid10:37:45AM:Startingpackager...10:39:34AM:StartingAndroid...10:39:37AM:Packagerstarted!Toviewyourappwithlivereloading,pointtheExpoapptothisQRcode.You'llfindtheQRscannerontheProjectstaboftheapp.Orenter

android - onPostExecute() 的 "runs on UI thread"到底是什么意思?

考虑在Activity中启动的AsyncTask。如果Activity被暂停或销毁会怎样?onPostExecute()会运行吗?如果是,将使用什么UI线程?只是想知道。非常感谢。 最佳答案 UI线程在您的应用程序的可见生命周期内可用,可能跨越多个Activity的组合。您在View中所做的任何更改都必须在UI线程上执行,AsyncTask的onPostExecute通过在UI线程中执行内部指令来反射(reflect)相同的逻辑。您可以在自己的Thread中使用runOnUiThread来更改View。但是因为AsyncTask有o

android - 测试运行失败 : Test run failed to complete. 预期 1 次测试,收到 0

我尝试为我的应用启动JUnit测试(robotium):publicclassMainTestextendsActivityInstrumentationTestCase2{privateSolosolo;publicMainTest(){super("nix.android.contact",MainActivity.class);//TODOAuto-generatedconstructorstub}protectedvoidsetUp()throwsException{super.setUp();solo=newSolo(getInstrumentation(),getActiv