草庐IT

run-configuration

全部标签

android - 将 Android 升级到 4.3 后,run-as 说 'package is unknown'

我有一个简单的脚本,可以将数据库从手机下载到我的电脑它使用'run-as',效果很好,但现在,run-as说'包未知'我的应用程序安装在设备上,没有任何变化,只是Android更新到了4.3你有同样的问题吗?如何绕过或解决? 最佳答案 当GalaxyS4在没有它的情况下发布时,我们遇到了缺失的run-as问题。我们使用run-as启动gdbserver以进行应用程序调试。我们通过将gdbserver作为Android服务启动来解决此问题。更多详情请访问run-asPackage'a.b.c'isunknown-GalaxyS4Jel

Android Instant Run First-time 安装后启动应用程序需要太多时间

我已经安装了android-instant-run介绍于android-studio-2.0我在第一次运行我的应用程序时遇到问题。它在启动Activity后出现5到10秒的空白屏幕。只为每个应用程序第一次运行需要时间,但我不知道为什么会发生。Logcat:W/System:ClassLoader引用了未知路径:/data/app/com.package.name/lib/arm 最佳答案 您好,我在更新AndroidStudio2.0时也遇到了这个问题通过将minSDKVersion从14更改为16并将gradle版本更改为2.4来

android - 测试运行失败 : Instrumentation run failed due to 'java.lang.ClassNotFoundException'

这是我第一次设置一个Android测试项目来测试一个Android项目。我创建了一个非常基本的测试用例,我正在尝试运行它,但是我没有运行。我收到Testrunfailed:Instrumentationrunfaileddueto'java.lang.ClassNotFoundException'。我会更多地解决这个问题,但是我没有得到更多信息,例如它试图找到哪个类等。关于如何从错误中获取更多信息的任何想法?我应该查看的任何公共(public)区域,或者我忽略的任何可能需要配置的区域?以下是来自控制台的信息:[2013-04-1613:21:49-XyzProgramTest]Andr

android - 无法评估模块 'react-native-maps' : Configuration with name 'default' not found

使用“react-native-maps”构建应用程序时出现问题这是我的setting.gradle文件include':react-native-maps'project(':react-native-maps').projectDir=newFile(rootProject.projectDir,'../node_modules/react-native-maps/android')android/app/build.gradle文件的依赖关系dependencies{compileproject(':react-native-maps')compilefileTree(dir:"

android无法启动模拟器:Cannot run program

我已经在Ubuntu上成功安装了androidSDK和androideclipse插件。在我删除Ubuntu并安装LinuxMint之前,一切都运行良好。我再次安装了SDK并使用了我在Ubuntu上使用的相同eclipse副本,但现在所有的android应用程序都包含错误,我无法启动模拟器。启动模拟器时出现此消息StartingemulatorforAVD'test'Failedtostartemulator:Cannotrunprogram"/home/anas/android//tools/emulator":error=2,Nosuchfileordirectory而androi

android - Android 4 中的 "computeValuesWithHarfbuzz -- need to force to single run": What does this mean?

我的Android4应用通过将多个textviews添加到linearlayout来生成长View。这适用于我的所有列表项,除了一个。问题是,textviews列表在添加第一个textview后中止,但没有抛出异常!我只是在我的LogCat中看到了这个警告:TextLayoutCache|computeValuesWithHarfbuzz--needtoforcetosinglerun有人知道这是什么意思吗? 最佳答案 HarfBuzz是OpenType字体的布局/整形引擎。其目的是标准化开源项目中的文本布局。该警告可以追溯到and

android - react-native run-android DeviceException 无法创建 ADB 桥

我创建了一个React-Native项目。当我运行react-nativerun-ios时,构建成功。但是当我运行react-nativerun-android我得到这个错误:*Whatwentwrong:Executionfailedfortask':app:installDebug'.>com.android.builder.testing.api.DeviceException:CouldnotcreateADBBridge.ADBlocation:/Applications/ADT/sdk/platform-tools/adb提前致谢。 最佳答案

android - 如何解决这个 : 'Running android lint' issue

在我项目的任何Activity中,如果我进行一些更改然后保存该Activity,我会收到消息“运行androidlint遇到问题。”这是我的错误日志:java.lang.NullPointerExceptionatcom.android.ide.eclipse.adt.AdtUtils.workspacePathToFile(AdtUtils.java:466)atcom.android.ide.eclipse.adt.internal.lint.EclipseLintClient.getClassPath(EclipseLintClient.java:753)atcom.androi

mongodb - errmsg": "No host described in new configuration 1 for replica set rs0 maps to this node", 为什么我会收到此消息?

我每次执行rs.initiate()时都会收到此消息:Nohostdescribedinnewconfiguration1forreplicasetrs0mapstothisnode这就是我的/etc/hosts/文件在两个副本集服务器上的外观。服务器1和服务器2“主机”文件127.0.0.1localhostaa.bb.cc.ddDataMongo1ee.ff.gg.hhDataMongo2服务器1-mongod.conf文件bind-ipaa.bb.cc.dd服务器2-mongod.conf文件bind-ipee.ff.gg.hh将server1主机名更改为DataMongo1,将

mongodb - errmsg": "No host described in new configuration 1 for replica set rs0 maps to this node", 为什么我会收到此消息?

我每次执行rs.initiate()时都会收到此消息:Nohostdescribedinnewconfiguration1forreplicasetrs0mapstothisnode这就是我的/etc/hosts/文件在两个副本集服务器上的外观。服务器1和服务器2“主机”文件127.0.0.1localhostaa.bb.cc.ddDataMongo1ee.ff.gg.hhDataMongo2服务器1-mongod.conf文件bind-ipaa.bb.cc.dd服务器2-mongod.conf文件bind-ipee.ff.gg.hh将server1主机名更改为DataMongo1,将