Delphi 突然说“[警告警告] 找不到本地文件 "Android\Debug\classes.dex"。正在跳过部署。”

Delphi suddenly says that "[Warning Warning] Local file "Android\Debug\classes.dex" not found. Skipping deployment."

这是 LG Phone 上的 Delphi 10 西雅图。 我突然开始出现上述错误,此后几乎所有程序都无法加载我的 phone.This 程序。这些程序都已编译好,但是当我尝试部署它们时出现此错误:

paclient command line
  c:\program files (x86)\embarcadero\studio.0\bin\paclient.exe -u8 --put="c:\program files 
  (x86)\embarcadero\studio.0\bin\Artwork\Android\FM_LauncherIcon_96x96.png,.\Android\Debug\CameraTest\res\drawable-xhdpi\,1,ic_launcher.png" 
paclient command line
  c:\program files (x86)\embarcadero\studio.0\bin\paclient.exe -u8 --put="C:\Program Files 
  (x86)\Embarcadero\Studio.0\bin\Artwork\Android\FM_LauncherIcon_48x48.png,.\Android\Debug\CameraTest\res\drawable-mdpi\,1,ic_launcher.png" 
[Warning Warning] Local file "Android\Debug\classes.dex" not found. Skipping deployment.

之后中止部署。

我可以看到名称中有两个斜杠,但我找不到任何原因。但我可以部署的稀有程序也是如此,所以显然这不是问题的原因。

这个有效:

unit Unit8;

interface

uses
  System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
  FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,

  System.IOUtils,
  FMX.StdCtrls,
  FMX.Controls.Presentation, FMX.ScrollBox, FMX.Memo;


type
  TForm8 = class(TForm)
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form8: TForm8;

implementation
{$R *.fmx}
end.

这不是:

unit Main;

interface

uses
  System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
  FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics;

type
  TFormMain = class(TForm)
  private
  public
  end;

var
  FormMain: TFormMain;

implementation
end.

失败的代码,开始时是一个更大的程序,当它失败时,我开始削减部分期望它最终会开始运行并且我能够定位问题。但那并没有发生。我尝试在编译前清除它,但我仍然无法部署。我假设某些文件一定是问题的原因,所以我尝试删除 Android 文件夹。并创建了一个新文件夹,但问题仍然存在。 classes.dex 文件是否可能只是在 compilation/link 中的特定点创建,所以只有 recreated/updated 当您执行相同的操作时?此外,这并不能解释为什么我的几乎所有程序都会突然开始出现这种情况?

我很困惑。希望有人能帮忙。

我最终从备份中恢复了整个 Delphi 安装。但我认为问题与以下之一有关:a) 注册数据库 f.cked 已启动。 b) 或者它是两个文件夹 appdata/local 或 appdata/roaming 之一被以某种方式破坏了。 我会在这里撒谎。