sakibguy / worked-issues

arget medi a[rpescriptionmedicie] &ssets[dr] (reeeverse._ax:p)
2 stars 0 forks source link

[ORG] SG-MYALICE: Execution failed for task ':app:compileFlutterBuildDevDebug'. #39

Closed sakibguy closed 2 years ago

sakibguy commented 2 years ago

Execution failed for task ':app:compileFlutterBuildDevDebug'.

java.lang.NullPointerException (no error message)

Prob Details

Launching lib\main.dart on SM G610F in debug mode...
Running Gradle task 'assembleDevDebug'...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
C:\Users\User\AppData\Local\Android\Sdk\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\amplitude_flutter-3.9.0\android\src\main\kotlin\com\amplitude\amplitude_flutter\AmplitudeFlutterPlugin.kt:13:48: warning: 'Registrar' is deprecated. Deprecated in Java
import io.flutter.plugin.common.PluginRegistry.Registrar
                                               ^
C:\Users\User\AppData\Local\Android\Sdk\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\amplitude_flutter-3.9.0\android\src\main\kotlin\com\amplitude\amplitude_flutter\AmplitudeFlutterPlugin.kt:25:37: warning: 'Registrar' is deprecated. Deprecated in Java
        fun registerWith(registrar: Registrar) {
                                    ^
C:\Users\User\AppData\Local\Android\Sdk\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\amplitude_flutter-3.9.0\android\src\main\kotlin\com\amplitude\amplitude_flutter\AmplitudeFlutterPlugin.kt:50:50: warning: type mismatch: inferred type is Nothing? but String was expected
                        json.optString("userId", null))
                                                 ^
C:\Users\User\AppData\Local\Android\Sdk\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\amplitude_flutter-3.9.0\android\src\main\kotlin\com\amplitude\amplitude_flutter\AmplitudeFlutterPlugin.kt:128:59: warning: type mismatch: inferred type is Nothing? but String was expected
                client.setUserId(json.optString("userId", null), json.optBoolean("startNewSession", false))
                                                          ^
C:\Users\User\AppData\Local\Android\Sdk\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\amplitude_flutter-3.9.0\android\src\main\kotlin\com\amplitude\amplitude_flutter\AmplitudeFlutterPlugin.kt:134:65: warning: type mismatch: inferred type is Nothing? but String was expected
                client.setServerUrl(json.optString("serverUrl", null))
                                                                ^
C:\Users\User\AppData\Local\Android\Sdk\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\amplitude_flutter-3.9.0\android\src\main\kotlin\com\amplitude\amplitude_flutter\AmplitudeFlutterPlugin.kt:157:24: warning: 'logRevenue(String!, Int, Double): Unit' is deprecated. Deprecated in Java
                client.logRevenue(json.getString("productIdentifier"),
                       ^
C:\Users\User\AppData\Local\Android\Sdk\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\amplitude_flutter-3.9.0\android\src\main\kotlin\com\amplitude\amplitude_flutter\AmplitudeFlutterPlugin.kt:165:24: warning: 'logRevenue(Double): Unit' is deprecated. Deprecated in Java
                client.logRevenue(json.getDouble("amount"))
                       ^

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDevDebug'.
> java.lang.NullPointerException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6m 16s
Exception: Gradle task assembleDevDebug failed with exit code 1
sakibguy commented 2 years ago

Launching lib\main.dart on SM G610F in debug mode... Running Gradle task 'assembleDevDebug'... Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

FAILURE: Build failed with an exception.

BUILD FAILED in 10m 16s Exception: Gradle task assembleDevDebug failed with exit code 1

sakibguy commented 2 years ago

Soln:

https://github.com/sakibguy/worked-issues/issues/40#issuecomment-1187187784