Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/212.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 等待调试器_Java_Android_Android Studio - Fatal编程技术网

Java 等待调试器

Java 等待调试器,java,android,android-studio,Java,Android,Android Studio,我有个问题。我创建了一个新的活动,我正在尝试链接它 给我以前的那个。我创建了一个意图,但应用程序没有给出 me错误,但在电话中我收到以下消息:等待调试器:强制关闭,我必须关闭它 有什么建议吗? 在intent中,我也尝试了这一点:intent intent=newintent(StartScreen.this,MainActivity.class)但是,我有一个错误: 找不到适用于意图(,类)构造函数意图的合适构造函数。意图(字符串,Uri)不适用(参数不匹配;无法转换为字符串)构造函数意图。意

我有个问题。我创建了一个新的活动,我正在尝试链接它 给我以前的那个。我创建了一个意图,但应用程序没有给出 me错误,但在电话中我收到以下消息:
等待调试器:强制关闭
,我必须关闭它

有什么建议吗?

在intent中,我也尝试了这一点:
intent intent=newintent(StartScreen.this,MainActivity.class)但是,我有一个错误:

找不到适用于意图(,类)构造函数意图的合适构造函数。意图(字符串,Uri)不适用(参数不匹配;无法转换为字符串)构造函数意图。意图(上下文,类)不适用(参数不匹配;无法转换为上下文)

代码如下:

public class StartScreen extends AppCompatActivity {

    public static final String TAG = "StartScreen";

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.start);
        Log.d(TAG, "onClick: Starting.");

        Button startBtn = (Button) findViewById(R.id.startBtn);

        startBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.d(TAG, "onClick: clicked startBtn.");

                Intent intent = new Intent(getApplicationContext(), MainActivity.class);
                startActivity(intent);
            }
        });
    }
}
Logcat 05-25 21:52:18.345 23261-23261/? E/合子:v2 05-25 21:52:18.345 23261-23261/? I/libpersona:KNOX_SDCARD检查10265 KNOX_SDCARD不是人物角色 05-25 21:52:18.347 23261-23261/? E/合子:访问信息:0 05-25 21:52:18.347 23261-23261/? W/SELinux:SELinux-SELinux\u android\u compute\u policy\u index:policy index[2],Con:u:r:zyote:s0 RAM:SEPF\u SECMOBILE\u 7.0\u 0009,[-1-1-1-1] 05-25 21:52:18.350 23261-23261/? I/SELinux:SELinux:seapp\u context\u lookup:seinfo=untrusted,level=s0:c512,c768,pkgname=com.example.mariacristina.quizzz 05-25 21:52:18.356 23261-23261/? I/art:Late-enabling-Xcheck:jni 05-25 21:52:18.399 23261-23261/? D/TimaKeyStoreProvider:TimaKeyStore未启用:无法添加TimaSignature服务和generateKeyPair服务 05-25 21:52:18.659 23261-23261/com.example.mariacristina.quizzz W/System:ClassLoader引用的未知路径:/data/app/com.example.mariacristina.quizzz-1/lib/arm 05-25 21:52:18.698 23261-23261/com.example.mariacristina.quizzi/instanttrun:启动即时运行服务器:是主进程 05-25 21:52:19.245 23261-23261/com.example.mariacristina.quizzz W/art:Android 4.1之前的方法Android.graphics.porterduffclorfilter Android.support.graphics.drawable.VectorDrawableCompat.UpdatentFilter(Android.graphics.porterduffclorfilter,Android.content.res.ColorStateList,Android.graphics.PorterDuff$模式)将错误地重写android.graphics.drawable.drawable中的包私有方法 05-25 21:52:19.820 23261-23261/com.example.mariacristina.quizzz D/TextView:setTypeface with style:0 05-25 21:52:19.823 23261-23261/com.example.mariacristina.quizzz D/TextView:setTypeface with style:0 05-25 21:52:19.947 23261-23261/com.example.mariacristina.quizzz D/TextView:setTypeface with style:0 05-25 21:52:19.949 23261-23261/com.example.mariacristina.quizzz D/TextView:setTypeface with style:0 05-25 21:52:19.980 23261-23261/com.example.mariacristina.quizzz D/TextView:setTypeface with style:0 05-25 21:52:20.027 23261-23261/com.example.mariacristina.quizzz D/编舞:初始sf_choreo_doframe调试级别:0x4f4cdebug_游戏运行:false 05-25 21:52:20.157 23261-23261/com.example.mariacristina.quizzd/ViewRootImpl@577b63b[MainActivity]:ThreadedRenderer.create()半透明=false 05-25 21:52:20.170 23261-23261/com.example.mariacristina.quizzz D/InputTransport:构建的输入通道:fd=71 05-25 21:52:20.173 23261-23261/com.example.mariacristina.quizzd/ViewRootImpl@577b63b[MainActivity]:设置视图=DecorView@a20c158[MainActivity]touchMode=true 05-25 21:52:20.209 23261-23261/com.example.mariacristina.quizzd/ViewRootImpl@577b63b[主要活动]:发送附件到Windows 05-25 21:52:20.240 23261-23261/com.example.mariacristina.quizzd/ViewRootImpl@577b63b[MainActivity]:重新启动返回:oldFrame=[0,0][0,0]newFrame=[0,0][7201280]结果=0x27曲面={isValid=true-256112640}曲面GenerationChanged=true 05-25 21:52:20.24123261-23261/com.example.mariacristina.quizzd/ViewRootImpl@577b63b[MainActivity]:mHardwareRenderer.initialize()mSurface={isValid=true-256112640}hwInitialized=true 05-25 21:52:20.344 23261-23261/com.example.mariacristina.quizzz W/art:Android 4.1之前,方法int-Android.support.v7.widget.DropDownListView.lookForSelectablePosition(int,boolean)会错误地覆盖Android.widget.ListView中的包私有方法 05-25 21:52:20.373 23261-23277/com.example.mariacristina.quizzz D/libEGL:loaded/vendor/lib/egl/libGLES_mali.so 05-25 21:52:20.450 23261-23277/com.example.mariacristina.quizzi/OpenGLRenderer:初始化EGL,版本1.4 05-25 21:52:20.450 23261-23277/com.example.mariacristina.quizzz D/OpenGLRenderer:Swap行为1 05-25 21:52:20.532 23261-23277/com.example.mariacristina.quizzz D/mali_winsys:EGLint new_window_surface(egl_winsys_display*,void*,eglssurface,EGLConfig,egl_winsys_surface**,egl_color_buffer_format*,EGLBoolean)返回0x3000,[720x1280]-格式:1 05-25 21:52:21.320 23261-23261/com.example.mariacristina.quizzd/ViewRootImpl@577b63b[MainActivity]:MSG_RESIZED_REPORT:frame=Rect(0,0-7201280)ci=Rect(0,48-0,0)vi=Rect(0,48-0,0)或=1 05-25 21:52:21.321 23261-23261/com.example.mariacristina.quizzi/编舞:跳过56帧!应用程序可能在其主线程上做了太多工作


试试这个吧。意向意向=新意向(StartScreen.this,MainActivity.class);卸下usb电缆,然后重试,您正在尝试在running@Deepakkaku我已经试过了,但这是最好的same@SuhaibRoomy我这么做了,但我的应用程序还是崩溃了