Metasploit-framework: Metasploit on Windows - Ruby error

Created on 24 Mar 2020  路  13Comments  路  Source: rapid7/metasploit-framework

Steps to reproduce

How'd you do it?

  1. Install Ruby - Windows https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.0-1/rubyinstaller-devkit-2.7.0-1-x64.exe
  2. Install Metasploit Framework - Windows build https://windows.metasploit.com/metasploitframework-latest.msi (referenced from https://github.com/rapid7/metasploit-framework/wiki/Nightly-Installers)

This section should also tell us any relevant information about the
environment; for example, if an exploit that used to work is failing,
tell us the victim operating system and service versions.

Expected behavior

What should happen?

No errors encountered.

Current behavior

What happens instead?

You might also want to check the last ~1k lines of
/opt/metasploit/apps/pro/engine/config/logs/framework.log or
~/.msf4/logs/framework.log for relevant stack traces

C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/rex-core-0.1.13/lib/rex/compat.rb:376: warning: Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead

[-] WARNING! The following modules could not be loaded!
[-] C:/metasploit-framework/embedded/framework/modules/payloads/singles/cmd/unix/reverse_ssh.rb
[-] Please see C:/Users//.msf4/logs/framework.log for details.

Looking into framework.log reveals:

[03/22/2020 17:33:31] [e(0)] core: C:/metasploit-framework/embedded/framework/modules/payloads/singles/cmd/unix/reverse_ssh.rb failed to load due to the following error: LoadError cannot load such file -- pty

This error is known, and affects other software, written in Ruby, when run on Windows OS platform.
e.g. https://github.com/ThrowTheSwitch/Ceedling/issues/76
The fix there (commit https://github.com/ThrowTheSwitch/Ceedling/commit/d60fe4b236a787c2f464b1ac3e061db21c86610b) was to use popen4 instead of pty, perhaps this can do the same

System stuff

Metasploit version

Get this with the version command in msfconsole (or git log -1 --pretty=oneline for a source install).

I installed Metasploit with:

  • [ ] Kali package via apt
  • [x] Omnibus installer (nightly)
  • [ ] Commercial/Community installer (from http://www.rapid7.com/products/metasploit/download.jsp)
  • [ ] Source install (please specify ruby version)

OS

What OS are you running Metasploit on?

Windows 10 v1909

bug confirmed

Most helpful comment

@bcoles I disabled it, "Virus and Threat protection" is turned off, edit: i will try again, i disabled everything on Windows Defender

This is a different issue to the original post. However, the android/apk/classes.dex not found (RuntimeError) error is generated when the android/apk/classes.dex file cannot be found. Traditionally, this has always been because anti-virus ate it. You can probably confirm this by reviewing your anti-virus logs. If some reason that doesn't fix it, please create a new issue.

I apologize, now it's running okay, the problem was i forgot to disable real time protection, i thought it was disabled, my bad, thanks sir, good morning =)

All 13 comments

In particular, pty -> popen4, for reference:

begin
  require 'pty'
  def spawn_command(cmd, &block)
    begin
      PTY.spawn(cmd) do |stdout, stdin, pid|
        begin
          block.call(stdout)
        rescue Errno::EIO
        end
      end
    rescue Exception => e
      STDERR.puts e.inspect unless (e == PTY::ChildExited)
    end
  end
rescue
  begin
    require 'popen4'
    def spawn_command(cmd, &block)
      POpen4.popen4(cmd) do |stdout, stderr, stdin|
        begin
          block.call(stdout)
        rescue Errno::EIO
        end
      end
    end
  rescue
    raise "Could Not Find PTY or POPEN4 gem. Install one or both like 'gem install pty'"
  end
end

Hmm the installers themselves should come with the dependencies (Installers are built nightly for OS X, Windows (64-bit) and Linux. These installers include dependencies (like Ruby and PostgreSQL) and integrate with your package manager, so they're easy to update.) so there should be no need to install Ruby separately. I'm looking into this now

Ok can confirm this warning is also encountered on version 5.0.93 omnibus installer. I also updated the issue as the installer you used is the Omnibus installer, not the commercial/community installer.

Here is my output:

C:\metasploit-framework\bin>msfconsole.bat
C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/rex-core-0.1.13/lib/rex/compat.rb:376: warning: Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead
[!] The following modules could not be loaded!
[!]     C:/metasploit-framework/embedded/framework/modules/payloads/singles/cmd/unix/reverse_ssh.rb
[!] Please see C:/Users/test/.msf4/logs/framework.log for details.
                          ########                  #
                      #################            #
                   ######################         #
                  #########################      #
                ############################
               ##############################
               ###############################
              ###############################
              ##############################
                              #    ########   #
                 ##        ###        ####   ##
                                      ###   ###
                                    ####   ###
               ####          ##########   ####
               #######################   ####
                 ####################   ####
                  ##################  ####
                    ############      ##
                       ########        ###
                      #########        #####
                    ############      ######
                   ########      #########
                     #####       ########
                       ###       #########
                      ######    ############
                     #######################
                     #   #   ###  #   #   ##
                     ########################
                      ##     ##   ##     ##
                            https://metasploit.com


       =[ metasploit v5.0.93-dev-002f65958c1ca7818099d7a601f8a719ffa66bbc]
+ -- --=[ 2029 exploits - 1102 auxiliary - 344 post       ]
+ -- --=[ 562 payloads - 45 encoders - 10 nops            ]
+ -- --=[ 7 evasion                                       ]

Metasploit tip: When in a module, use back to go back to the top level prompt

msf5 > ruby --version
[*] exec: ruby --version

ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]
msf5 >

Here is the framework.log file:

[06/11/2020 14:06:32] [e(0)] core: Failed to connect to the database: No database YAML file
[06/11/2020 14:06:32] [d(0)] core: Created user based module store
[06/11/2020 14:06:36] [e(0)] core: C:/metasploit-framework/embedded/framework/modules/payloads/singles/cmd/unix/reverse_ssh.rb failed to load due to the following error: 
    LoadError cannot load such file -- pty 
    Call stack: C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/hrr_rb_ssh-0.3.0.pre2/lib/hrr_rb_ssh/connection/request_handler/reference_pty_req_request_handler.rb:6:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/hrr_rb_ssh-0.3.0.pre2/lib/hrr_rb_ssh/connection/request_handler.rb:20:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency'
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/hrr_rb_ssh-0.3.0.pre2/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type/pty_req.rb:5:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/hrr_rb_ssh-0.3.0.pre2/lib/hrr_rb_ssh/connection/channel/channel_type/session/request_type.rb:23:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/hrr_rb_ssh-0.3.0.pre2/lib/hrr_rb_ssh/connection/channel/channel_type/session.rb:60:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/hrr_rb_ssh-0.3.0.pre2/lib/hrr_rb_ssh/connection/channel/channel_type.rb:19:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/hrr_rb_ssh-0.3.0.pre2/lib/hrr_rb_ssh/connection/channel.rb:6:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/hrr_rb_ssh-0.3.0.pre2/lib/hrr_rb_ssh/connection.rb:7:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/hrr_rb_ssh-0.3.0.pre2/lib/hrr_rb_ssh.rb:18:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/framework/lib/rex/proto/ssh/hrr_rb_ssh.rb:3:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/framework/lib/rex/proto/ssh/connection.rb:2:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/framework/lib/rex/proto/ssh/server.rb:2:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/framework/lib/rex/proto/ssh.rb:4:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/handler/reverse_ssh.rb:2:in `<top (required)>' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require' 
    C:/metasploit-framework/embedded/framework/modules/payloads/singles/cmd/unix/reverse_ssh.rb:6:in `module_eval_with_lexical_scope' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/modules/loader/base.rb:51:in `module_eval' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/modules/loader/base.rb:51:in `module_eval_with_lexical_scope' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/modules/loader/base.rb:140:in `block in load_module' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/modules/loader/base.rb:559:in `namespace_module_transaction' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/modules/loader/base.rb:178:in `load_module' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/modules/loader/base.rb:246:in `block in load_modules' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/modules/loader/directory.rb:49:in `block (2 levels) in each_module_reference_name' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/rex-core-0.1.13/lib/rex/file.rb:133:in `block in find' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/rex-core-0.1.13/lib/rex/file.rb:132:in `catch' 
    C:/metasploit-framework/embedded/lib/ruby/gems/2.6.0/gems/rex-core-0.1.13/lib/rex/file.rb:132:in `find' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/modules/loader/directory.rb:40:in `block in each_module_reference_name' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/modules/loader/directory.rb:30:in `foreach' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/modules/loader/directory.rb:30:in `each_module_reference_name' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/modules/loader/base.rb:245:in `load_modules' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/module_manager/loading.rb:135:in `block in load_modules' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/module_manager/loading.rb:133:in `each' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/module_manager/loading.rb:133:in `load_modules' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/module_manager/module_paths.rb:41:in `block in add_module_path' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/module_manager/module_paths.rb:40:in `each' 
    C:/metasploit-framework/embedded/framework/lib/msf/core/module_manager/module_paths.rb:40:in `add_module_path' 
    C:/metasploit-framework/embedded/framework/lib/msf/base/simple/framework/module_paths.rb:50:in `block in init_module_paths' 
    C:/metasploit-framework/embedded/framework/lib/msf/base/simple/framework/module_paths.rb:49:in `each' 
    C:/metasploit-framework/embedded/framework/lib/msf/base/simple/framework/module_paths.rb:49:in `init_module_paths' 
    C:/metasploit-framework/embedded/framework/lib/msf/ui/console/driver.rb:159:in `initialize' 
    C:/metasploit-framework/embedded/framework/lib/metasploit/framework/command/console.rb:62:in `new' 
    C:/metasploit-framework/embedded/framework/lib/metasploit/framework/command/console.rb:62:in `driver' 
    C:/metasploit-framework/embedded/framework/lib/metasploit/framework/command/console.rb:48:in `start' 
    C:/metasploit-framework/embedded/framework/lib/metasploit/framework/command/base.rb:82:in `start' 
    C:/metasploit-framework/bin/../embedded/framework/msfconsole:23:in `<main>'
[06/11/2020 14:06:36] [e(0)] core: Dependency for windows/x64/encrypted_shell_reverse_tcp is not supported
[06/11/2020 14:06:37] [e(0)] core: Dependency for windows/encrypted_shell_reverse_tcp is not supported
[06/11/2020 14:06:37] [e(0)] core: Dependency for windows/x64/encrypted_reverse_tcp is not supported
[06/11/2020 14:06:37] [e(0)] core: Dependency for windows/encrypted_reverse_tcp is not supported

@adfoster-r7 Would you happen to know who could look into this further? This seems like a Windows Omnibus installer specific issue, and whilst I've tried taking a look into it to assist on this, I was not able to pull up anything that seemed obvious as gem install pty will fail and @evandrix's recommendation to use popen4 didn't solve any issues even when I installed the gem with gem install popen4

Hi @evandrix - thanks for raising the issue :+1:

Just to help us understand a bit more about the scope of this issue - is this a module you wish to run on a windows environment? Or are you just raising awareness of the warning message?

@Cyber-Threat Your anti-virus ate the android/apk/classes.dex file. Disable your anti-virus then reinstall Metasploit.

12899 #12564 #9385 #11981

@bcoles I disabled it, "Virus and Threat protection" is turned off, edit: i will try again, i disabled everything on Windows Defender

@bcoles I disabled it, "Virus and Threat protection" is turned off, edit: i will try again, i disabled everything on Windows Defender

This is a different issue to the original post. However, the android/apk/classes.dex not found (RuntimeError) error is generated when the android/apk/classes.dex file cannot be found. Traditionally, this has always been because anti-virus ate it. You can probably confirm this by reviewing your anti-virus logs. If some reason that doesn't fix it, please create a new issue.

@bcoles I disabled it, "Virus and Threat protection" is turned off, edit: i will try again, i disabled everything on Windows Defender

This is a different issue to the original post. However, the android/apk/classes.dex not found (RuntimeError) error is generated when the android/apk/classes.dex file cannot be found. Traditionally, this has always been because anti-virus ate it. You can probably confirm this by reviewing your anti-virus logs. If some reason that doesn't fix it, please create a new issue.

I apologize, now it's running okay, the problem was i forgot to disable real time protection, i thought it was disabled, my bad, thanks sir, good morning =)

Closing this issue as it has now been resolved. Thanks @bcoles for identifying the root issue!

@gwillcox-r7 Too quick on the draw. I resolved an off-topic discussion. I believe the OPs issue remain unresolved.

Edit: And the off-topic poster has deleted their off-topic post, just to make things more confusing.

@bcoles woops, thanks for noticing, my bad 馃槗

Was this page helpful?
0 / 5 - 0 ratings