mono0926/barcode_scan2

Namespace

Rapafull opened this issue · 7 comments

A problem occurred configuring project ':barcode_scan2'.

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.

Downgrade your build to gradle 7.

Only need to add the namespace for the module in the package for working with the newest requisites from gradle 8.x. Can do it manually until they fix it entering in the package and adding the namespace="de.mintware.barcode_scan"

any update on the?

I have solves this issue with gradle v8.x by doing these thing to build.gradle for this library below:
1- add:
namespace "de.mintware.barcode_scan"
and
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
    jvmTarget = '1.8'
}

2 - change these :
ext.kotlin_version = "1.7.22"
ext.protobuf_version = '0.9.4'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
classpath 'com.android.tools.build:gradle:7.4.2'
gradle wrap to 7.4.all.zip

Is the same. If anyone tries to update internally and build for do a PR, the new Gradle for Flutter 3.16+ break a lot of things,

In a few days, for low time day, i've tried to do this, understand firstly the code and change the minor things deprecated. But I need more time for see why it breaks and doesn't compile. But if we change this file this compiles and doesn't break anything.... I'm not sure if it works 100%. I cannot do this config in the main package and i don't know if the tests pass doing this or if the app crashes using the package with this config.