下载仓库中的代码运行报错
来源:20-1 .课程总结
染指凉城丶
2019-09-02
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install /home/rd/Downloads/flutter_trip-master.tar/flutter_trip-master/flutter_trip/build/app/outputs/apk/app.apk: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl310086333.tmp/base.apk (at Binary XML file line #28): Empty class name in package org.devio.fluttertrip]
Error launching application on Android SDK built for x86.
写回答
2回答
-
染指凉城丶
提问者
2019-09-03
AndroidManifest.xml <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.devio.fluttertrip"> <!-- The INTERNET permission is required for development. Specifically, flutter needs it to communicate with the running application to allow setting breakpoints, to provide hot reload, etc. --> <uses-permission android:name="android.permission.INTERNET"/> <!-- io.flutter.app.FlutterApplication is an android.app.Application that calls FlutterMain.startInitialization(this); in its onCreate method. In most cases you can leave this as-is, but you if you want to provide additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> <application android:name="io.flutter.app.FlutterApplication" android:label="Flutter之旅" android:icon="@mipmap/ic_launcher"> <activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <!-- This keeps the window background of the activity showing until Flutter renders its first frame. It can be removed if there is no splash screen (such as the default splash screen defined in @style/LaunchTheme). --> <meta-data android:name="io.flutter.app.android.SplashScreenUntilFirstFrame" android:value="true" /> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <!--适配全面屏--> <meta-data android:name="android.max_aspect" android:value="2.3" /> </application> </manifest>
00 -
CrazyCodeBoy
2019-09-02
亲是不是不经意间修改了AndroidManifest.xml了呢,将代码删除重新下载运行试一下
012019-09-03
相似问题