简体   繁体   English

无法从导入的 flutter 项目中找到 main.dart 和 lib 文件夹

[英]unable to find main.dart and lib folder from imported flutter project

hi there, i backed up my flutter project folder due to some issues with my drive.您好,由于我的驱动器存在一些问题,我备份了我的 flutter 项目文件夹。 i fixed the issues only for me to try importing the project and continuing my work and it turns out i can't find my main.dart file along with my entire lib folder the only recognizable thing left in the project seems to be the assets folder我修复了这些问题,只是为了让我尝试导入项目并继续我的工作,结果我找不到我的 main.dart 文件以及我的整个 lib 文件夹,项目中唯一可识别的东西似乎是 assets 文件夹

help me, please this has really pushed me way behind schedule请帮帮我,这真的让我落后于计划

also I would be much grateful if i could get an app that decompiles flutter apks as my code is still in debug mode and i have the apk file.如果我能得到一个反编译 flutter apks 的应用程序,我将不胜感激,因为我的代码仍处于调试模式并且我有 apk 文件。

thanks谢谢

enter image description here在此处输入图像描述

To get source code of your apk file(debug):-要获取您的 apk 文件的源代码(调试):-

Step 1- download strings for Windows (in your case)第 1 步 - 下载 Windows 的字符串(在您的情况下)

https://docs.microsoft.com/en-us/sysinternals/downloads/strings https://docs.microsoft.com/en-us/sysinternals/downloads/strings

Step 2- Since kernel_blob.bin has all your app's source code, Run this command,第 2 步 - 由于 kernel_blob.bin 包含您应用的所有源代码,请运行此命令,

strings /path/to/extracted/apk/assets/flutter_assets/kernel_blob.bin > extracted_code.dart

Here, replace, "path to extracted" to your own path.在这里,将“提取路径”替换为您自己的路径。

Step 3第 3 步

You'll need to clean the extract_code file, and strings like “dart”, “import”, “void” and other keywords in 'extracted_code.dart', will help you find the code itself.(search for them to get your code)您需要清理 extract_code 文件,“dart”、“import”、“void” 和“extracted_code.dart”中的其他关键字等字符串将帮助您找到代码本身。(搜索它们以获取您的代码)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM