断点不适用于 Android Studio 3.3 [英] Breakpoints not working on Android Studio 3.3

查看:29
本文介绍了断点不适用于 Android Studio 3.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

本周将 Android Studio 升级到 3.3 版本后,一些断点未被识别为有效,并且不会停止线程.

After upgrading Android Studio to version 3.3 this week, some breakpoints are not being recognized as valid, and are not stopping the thread.

我错过了什么吗?

推荐答案

问题出在构建工具链 (gradle, d8/r8) 中.问题在 Android Studio 3.4 Beta 1gradle 3.4.0-beta01修复.

The issue is in the build tool chain (gradle, d8/r8). Problem is fixed in Android Studio 3.4 Beta 1 with gradle 3.4.0-beta01.

或者可以通过本地更新项目的顶级 build.gradle 配置来解决此问题:

Or a workaround solution for this issue can be used by locally updating the top-level build.gradle configuration for your project:

buildscript {
    repositories {
        maven {
            url 'http://storage.googleapis.com/r8-releases/raw' // ADD THIS.
        }
    }

    dependencies {
        classpath 'com.android.tools:r8:1.3.55'  // ADD THIS. Must be before the Gradle Plugin for Android.
        classpath 'com.android.tools.build:gradle:3.3'
    } 
}

Android Gradle 插件的下一个版本发布后,这些更改可以被删除.

Once the next point release of Android Gradle Plugins takes place these changes can be removed.

有关详细信息,请参阅:https://issuetracker.google.com/issues/122450679

For more information, see: https://issuetracker.google.com/issues/122450679

这篇关于断点不适用于 Android Studio 3.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆