小编Pro*_*tal的帖子

我尝试调试时应用程序崩溃

我的应用程序在运行时运行正常,但是当我想调试以查看变量值时,应用程序崩溃了.完整的调试日志如下.我不知道纠正它的错误是什么.你能帮帮我们吗?我读了一些关于Disconnected from the target VM, address: 'localhost:8606', transport: 'socket'我的内容并禁用了ADB Integration并且没有帮助我.我试图清理,重建和再次运行项目,并没有帮助我.每次我尝试开始调试应用程序崩溃.

先感谢您!!

  Connected to the target VM, address: 'localhost:8606', transport: 'socket'
    I/System.out: waiting for debugger to settle...
    I/System.out: debugger has settled (1421)
    W/System: ClassLoader referenced unknown path: /data/app/com.example.rares.echipahandbaltema2-2/lib/x86
    I/InstantRun: Instant Run Runtime started. Android package is com.example.rares.echipahandbaltema2, real application class is null.
    W/System: ClassLoader referenced unknown path: /data/app/com.example.rares.echipahandbaltema2-2/lib/x86
    W/art: Not able to initialize class for SetValues: java.lang.Class<com.example.rares.echipahandbaltema2.MainActivity$1>
    W/art: Not able to initialize class for SetValues: java.lang.Class<com.example.rares.echipahandbaltema2.MainActivity$1>
    I/art: Starting a …
Run Code Online (Sandbox Code Playgroud)

debugging android

27
推荐指数
1
解决办法
9940
查看次数

无法找到或加载主类$JAVA_OPTS

我正在尝试为 Heroku 平台配置 Procfile 文件以在本地运行应用程序。我正在尝试运行基于 Tomcat 的 Java Web 应用程序。

在教程中他们说:

To build your app locally do this:
Use the Git Bash application to open a command shell on Windows.
$ mvn clean install
$ heroku local web
Run Code Online (Sandbox Code Playgroud)

我在项目目录中,mvn clean install收到后

BUILD SUCCESS

问题是当我跑步时:heroku local web 我收到[WARN] No ENV file found web.1 | Error: Could not find or load main class $JAVA_OPTS

我的 Procfile 有 1 行:

web: java $JAVA_OPTS -jar target/dependency/webapp-runner.jar --port $PORT target/*.war

我正在使用Windows。我在 …

java tomcat heroku maven

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

debugging ×1

heroku ×1

java ×1

maven ×1

tomcat ×1