小编Alf*_*lus的帖子

testUI(詹金斯)使用浓缩咖啡

该应用程序在本地传递espresso测试,我的意思是直接到设备和genymotion模拟器.当我使用Jenkins构建应用程序的图像时.espresso测试不成功我收到此错误.

JENKINS:

 java.lang.RuntimeException: Waited for the root of the view hierarchy to have window focus and not be requesting layout for over 10 seconds. If you specified a non default root matcher, it may be picking a root that never takes focus. Otherwise, something is seriously wrong. Selected Root:
Root{application-window-token=android.view.ViewRootImpl$W@536a97d4, window-token=android.view.ViewRootImpl$W@536a97d4, has-window-focus=false, layout-params-type=1, layout-params-string=WM.LayoutParams{(0,0)(fillxfill) sim=#100 ty=1 fl=#1810100 pfl=0x8 wanim=0x103028f}, decor-view-string=DecorView{id=-1, visibility=VISIBLE, width=800, height=1184, has-focus=true, has-focusable=true, has-window-focus=false, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}}
. All Roots: …
Run Code Online (Sandbox Code Playgroud)

android jenkins android-espresso

15
推荐指数
1
解决办法
4346
查看次数

移动数据无效.Nexus 5上的Android Lollipop

我用最后一个版本的android Lollipop hammerhead(LRX21O)闪现了我的nexus 5.移动数据不起作用,我可以通过WIFI连接到互联网,但没有LTE/3G连接.

对于电话和短信,有任何问题.我已经正确配置了APS设置.

任何人都知道如何解决它?

谢谢

android nexus-5 android-5.0-lollipop

8
推荐指数
2
解决办法
7万
查看次数

菜单android上的复选框项状态

如何设置菜单中复选框项目部分的初始值?当我启动一个Activity时,我想设置一个保存在共享首选项中的布尔值.

<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context=".LoginActivity">
    <item
        android:id="@+id/checkbox"
        android:title="@string/checkbox"
        android:orderInCategory="10"
        android:showAsAction="never"
        android:visible="true"
        android:checkable="true"
        android:checked="true"/>
</menu>
Run Code Online (Sandbox Code Playgroud)

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.login, menu);
    return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
    if (item.getItemId() == R.id.checkbox){

        if(item.isChecked()){
            item.setChecked(false);
        }else{
            item.setChecked(true);
        }
        SharedPreferences.Editor editor = prefs.edit();
        editor.putBoolean(PrefsConsts.CHECKBOX,item.isChecked());
        editor.commit();

    }
    return true;
}
Run Code Online (Sandbox Code Playgroud)

我总能知道什么是价值,但我不知道如何设置新的价值.

android android-checkbox

4
推荐指数
1
解决办法
9838
查看次数

在jenkins安卓中集成葫芦

我用calabash-android开发了一个测试.一切都运行得如何.现在我想在Jenkins中运行场景.

1)我应该在Jenkins中安装哪个插件?

2)如何运行我的测试?目前我正在使用命令:calabash-android run,我没有实现另一种方式.

3)我必须在服务器中另外安装什么?

android jenkins jenkins-plugins calabash-android

3
推荐指数
1
解决办法
2699
查看次数

通过在Pixel中执行ARCore而崩溃

试图在像素中执行示例应用程序,但我收到以下错误:

java.lang.UnsatisfiedLinkError: No implementation found for int com.google.atap.tango.TangoJNINative.Initialize(android.content.Context) (tried Java_com_google_atap_tango_TangoJNINative_Initialize and Java_com_google_atap_tango_TangoJNINative_Initialize__Landroid_content_Context_2)
    at com.google.atap.tango.TangoJNINative.Initialize(Native Method)
    at com.google.atap.tangoservice.Tango.<init>(Tango.java:385)
    at com.google.ar.core.TangoWrapper.createInstance(TangoWrapper.java:32)
    at com.google.ar.core.Session.bindTangoService(Session.java:425)
    at com.google.ar.core.Session.resume(Session.java:153)
    at com.google.ar.core.examples.java.helloar.HelloArActivity.onResume(HelloArActivity.java:136)
    at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1269)
    at android.app.Activity.performResume(Activity.java:6786)
    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3407)
    at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3470)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2733)
    at android.app.ActivityThread.-wrap12(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6121)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
Run Code Online (Sandbox Code Playgroud)

知道为什么它不起作用吗?

android google-project-tango arcore

0
推荐指数
1
解决办法
1002
查看次数