MEnigma / flutter_rtmp

flutter rtmp
MIT License
42 stars 15 forks source link

Example app only works in release mode #8

Open dander11 opened 4 years ago

dander11 commented 4 years ago

I have setup the example app but it will only run in release mode for some reason. I'm using a PixelXL as my device.

When I try to run it in debug mode the app opens and crashes immediately.

Flutter doctor results: flutter doctor -v [√] Flutter (Channel beta, v1.17.0-3.4.pre, on Microsoft Windows [Version 10.0.18363.778], locale en-US) • Flutter version 1.17.0-3.4.pre at A:\Dev\flutter\sdk\flutter • Framework revision e6b34c2b5c (8 days ago), 2020-05-02 11:39:18 -0700 • Engine revision 540786dd51 • Dart version 2.8.1

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3) • Android SDK at C:\Users\dander11\AppData\Local\Android\sdk • Platform android-29, build-tools 29.0.3 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04) • All Android licenses accepted.

[√] Chrome - develop for the web • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 3.6) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 45.1.1 • Dart plugin version 192.7761 • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[√] VS Code, 64-bit edition (version 1.44.2) • VS Code at C:\Program Files\Microsoft VS Code • Flutter extension version 3.10.1

[√] Connected device (3 available) • Pixel XL • HT68T0202782 • android-arm64 • Android 10 (API 29) • Chrome • chrome • web-javascript • Google Chrome 81.0.4044.138 • Web Server • web-server • web-javascript • Flutter Tools

• No issues found!

dander11 commented 4 years ago

Looks like the error is caused by the package trying to force the application name. Here is the error when I try to use my app name.

Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@label value=(exampleapp) from AndroidManifest.xml:10:9-35
    is also present at [libWSLive-release.aar] AndroidManifest.xml:21:9-41 value=(@string/app_name).
    Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:8:5-46:19 to override.
MEnigma commented 4 years ago

Looks like the error is caused by the package trying to force the application name. Here is the error when I try to use my app name.

Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@label value=(exampleapp) from AndroidManifest.xml:10:9-35
      is also present at [libWSLive-release.aar] AndroidManifest.xml:21:9-41 value=(@string/app_name).
      Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:8:5-46:19 to override.

You can add 'tools:replace="android:label"' to element at AndroidManifest.xml:8:5-46:19 to override. Just like the suggestion do

saurav0001kumar commented 4 years ago

Steps to resolve the issue:

[STEP 1] Add the following line to < application > element at AndroidManifest.xml .

 tools:replace="android:label"  

[STEP 2] Add the following line to < manifest > element at AndroidManifest.xml . xmlns:tools="http://schemas.android.com/tools"

[ SEE the Screenshot below for more details. ]

solution

MEnigma commented 4 years ago

Steps to resolve the issue:

[STEP 1] Add the following line to < application > element at AndroidManifest.xml .

 tools:replace="android:label"  

[STEP 2] Add the following line to < manifest > element at AndroidManifest.xml .

 xmlns:tools="http://schemas.android.com/tools"   

[ SEE the Screenshot below for more details. ]

solution

thanks for reminding And u can also try the latest version without this problem. it's remove the [ libWSLive-release.aar ] tag0.1.6.1