hui-z / flutter_install_plugin

A flutter plugin for install apk for android; and using url to go to app store for iOS.
MIT License
105 stars 112 forks source link

Build failed in flutter 3.24 #76

Open Mahdi-Panahi opened 1 month ago

Mahdi-Panahi commented 1 month ago

FAILURE: Build failed with an exception.

brandonLYQ00 commented 1 month ago

Same error occurred on flutter 3.24. Please fix

brandyn commented 1 month ago

I get a different error with 3.24. To keep it clean, I created a brand new, empty (default example app) flutter project, and then just added install_plugin to the pubspec. This results in the following build error:

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':install_plugin'.

    Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

    If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

camillobucciarelli commented 3 weeks ago

The issue is related to namespace, to fix this they need to release PR #67