每当我运行 flutter run -vi 时,aapt dump xmltree 都会出错。所以现在我单独运行 aapt dump 命令,所以我在无法打开的 AndroidManifest.xml 中得到错误。
库曼德
C:\Users\admin\AppData\Local\Android\Sdk\build-tools\28.0.3>aapt dump C:\Users\admin\AndroidStudioProjects\flutter_app\build\app\outputs\apk\app.apk AndroidManifest.xml
输出
Binary APK
Package name=com.example.flutter_app id=7f
type drawable id=01 entryCount=1
resource 0x7f010000 drawable/launch_background
() (file) res/drawable/launch_background.xml type=XML
type mipmap id=02 entryCount=1
resource 0x7f020000 mipmap/ic_launcher
(mdpi) (file) res/mipmap-mdpi-v4/ic_launcher.png type=PNG
(hdpi) (file) res/mipmap-hdpi-v4/ic_launcher.png type=PNG
(xhdpi) (file) res/mipmap-xhdpi-v4/ic_launcher.png type=PNG
(xxhdpi) (file) res/mipmap-xxhdpi-v4/ic_launcher.png type=PNG
(xxxhdpi) (file) res/mipmap-xxxhdpi-v4/ic_launcher.png type=PNG
type style id=03 entryCount=1
resource 0x7f030000 style/LaunchTheme
() (style) size=1 parent=0x01030009
0x01010054=@drawable/launch_background
W/ziparchive( 5152): Unable to open 'AndroidManifest.xml': No such file or directory
AndroidManifest.xml: error: failed to open file: The system cannot find the file specified. (2).