Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace #78

Closed
Rapafull opened this issue Nov 8, 2023 · 7 comments
Closed

Namespace #78

Rapafull opened this issue Nov 8, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@Rapafull
Copy link

Rapafull commented Nov 8, 2023

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.

@Rapafull Rapafull added the bug Something isn't working label Nov 8, 2023
@ArocaAlejandro
Copy link

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"

@mericgerceker
Copy link

any update on the?

@TaifRaoof
Copy link

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

@ArocaAlejandro
Copy link

ArocaAlejandro commented Feb 26, 2024

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.

@pst9354
Copy link

pst9354 commented May 23, 2024

Anyone being able to do a PR to solve this issue?

@robinbonnes
Copy link
Contributor

I've created a PR, you can use my fork untill this is merged by changing your pubspec.yaml to:

dependencies:
  barcode_scan2:
    git:
      url: https://github.com/robinbonnes/barcode_scan2

@mono0926
Copy link
Owner

Merged #87 and released v4.3.2 🐶

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants