【问题标题】:Cannot find local variable找不到局部变量
【发布时间】:2021-06-18 11:22:28
【问题描述】:

从截图中可以看出,不能传递第二个参数。我确定调用 insertTrack 方法时 position 参数不为空。

我看过类似的问题,比如this,但没有解决。

谁能解释我的错误是什么?

【问题讨论】:

  • 请尝试使用我描述的 here 的 adb reset 解决方案

标签: android-studio


【解决方案1】:

你可以打开minifyEnabled,尝试关闭它。我喜欢关闭minifyEnabled

【讨论】:

    【解决方案2】:

    您可能无法打开可调试的

    buildTypes {
    ......
        debug {
            minifyEnabled false
            jniDebuggable true
            debuggable true
        }
    ......
    }
    

    steps

    【讨论】:

      猜你喜欢
      • 2020-01-19
      • 1970-01-01
      • 2020-06-13
      • 2017-11-08
      • 1970-01-01
      • 1970-01-01
      • 2020-01-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多