草庐IT

Instant-Run

全部标签

android - 为什么我无法在 Android Instant App 中访问相机?

我正在尝试开发一个相机即时应用程序,但当我通过manager.openCamera(cameraId,mStateCallback,null);打开相机时,它总是会崩溃:09-1021:00:55.3339472-9472/com.pixelslab.stickerpeI/CameraManager:UsinglegacycameraHAL.09-1021:00:55.3401402-1914/?I/CameraService:CameraService::connectcall(PID-1"com.pixelslab.stickerpe",cameraID0)forHALversio

android - 如何停止由 run.exec() 在 android 中启动的进程

如何停止“ping”?以下代码是我尝试的方式,但失败了。privateclasspingWifiimplementsRunnable{Processp=null;@Overridepublicvoidrun(){//TODOAuto-generatedmethodstub/**WifiInfoinfo=mWifiManager.getConnectionInfo();int*ip=info.getIpAddress();Stringips=Formatter.formatIpAddress(ip);*/System.out.println("pingWifirunnable");Str

Android Instant Run Gradle 实验性插件

我遇到了以下问题:fileordirectory'/Users/rpurohit/Documents/StudioProjects/myapp/app/src/androidTest/manifest',notfoundfileordirectory'/Users/rpurohit/Documents/StudioProjects/myapp/app/src/debug/manifest',notfoundfileordirectory'/Users/rpurohit/Documents/StudioProjects/myapp/app/src/main/manifest',notfo

安卓测试 : TestCase is run but ActivityInstrumentationTestCase2 not

我正在使用AndroidStudio。我有两个测试。一个扩展importjunit.framework.TestCase另一个importandroid.test.ActivityInstrumentationTestCase2;第一个是从AndroidStudio和命令行运行的:~/Software/android-studio/sdk/platform-tools/adbshellaminstrument-w-r-edebugfalsecom.gruszczy.eisenhower.test/android.test.InstrumentationTestRunnerINSTRUM

java - 安卓 2.2 : How to make an app to run automaticly on startup & how to make an app start another app

主题几乎说明了一切。 最佳答案 使用BroadcastReceiver接收ActionBOOT_COMPLETED的Intent。在onReceive()方法中为您的Activity创建一个Intent:@OverridepublicvoidonReceive(Contextcontext,Intentintent){IntentmyIntent=newIntent(context,YourActivity.class);context.startActivity(myIntent);}

android - 无法运行应用程序 - "The target device does not support the ' run-as'命令”

第一次在Macbook上运行AndroidStudio时出现此错误。该程序无法在我的设备上启动,我只是收到一条崩溃消息。在AndroidStudio上,我得到“目标设备不支持‘run-as’命令”,当我将它插入谷歌时,我没有得到任何结果。我得到一个“了解更多”部分,该部分指向“关于InstantRun”标题下的此链接:https://developer.android.com/studio/run/index.html?utm_medium=android-studio#instant-run.如有任何建议,我们将不胜感激。 最佳答案

android - 上传失败 : Your Instant App APKs should contain at least one base APK

我需要为InstantApp准备Alpha测试,它在AndroidStudio上运行得非常棒,但是当我尝试将它上传到PlayStore时它失败了,说:上传失败您的免安装应用APK应至少包含一个基础APK。应用程序结构使用三个模块完成:-base:包含所有代码-apk:获取可安装apk的包装器-instantApp:获取instantAppapk的Wrapper这是build.gradles:base/build.gradlebuildscript{repositories{jcenter()}}applyplugin:'com.android.feature'repositories{

android - 关于 .git/HEAD : error: manifest missing or unreadable -- please run init 的 repo 协议(protocol)

我正在使用repo(在ubuntu中)下载android4.4源代码。上次我通过组合键Ctrl+Z终止了repo进程,这次当我使用命令:“repoinit”和“reposync”启动它时,我得到了以下错误:error:insync:[Errno2]Nosuchfileordirectory:u'/home/ubuntu/workspace/packages/apps/VoiceDialer/.git/HEAD'error:manifestmissingorunreadable--pleaseruninit我试过“runinit”,没有显示任何错误。但是运行“repoinit”后问题仍然

android - "This app won' t run unless you update Google Play Services"when app is installed on real device

当我在运行旧版本(例如4.4.4)的Android设备上安装我的应用程序时,我收到此消息。我能看到的与此消息相关的所有其他帖子似乎都是在模拟器上运行时与GoogleMapsAPI相关的。我使用的是GooglePlay服务7.0.0。 最佳答案 Thisandroiddeveloper'sblogentry描述了GooglePlay服务7.0版中的新功能。如果您不需要这些,您可以使用6.5版,它已经使用了新的GoogleApiClient类并提供了精细的依赖模块(最好描述here和here。在我的一个项目中我使用了这个compile'

android - 权限拒绝 : runUninstall from pm command asks to run as user -1 but is calling from user 0;

我刚刚将我的Android设备(SamsungJ7Pro)升级到9.0(Pie),当我想从AndroidStudio运行任何应用程序时,我遇到了这个问题:PermissionDenial:runUninstallfrompmcommandaskstorunasuser-1butiscallingfromuser0;thisrequiresandroid.permission.INTERACT_ACROSS_USERS_FULL.我已经尝试添加INTERACT_ACROSS_USERS_FULL到我的AndroidManifest.xml但得到同样的错误。有什么帮助吗?