KasemJaffer / receive_sharing_intent

A Flutter plugin that enables flutter apps to receive sharing photos, text and url from other apps.
Apache License 2.0
325 stars 372 forks source link

A problem occurred configuring project ':receive_sharing_intent'. #254

Open matheszabi opened 1 year ago

matheszabi commented 1 year ago

FAILURE: Build failed with an exception.

FAILURE: Build failed with an exception.

android { namespace 'com.example.namespace' }

If the package attribute is specified in the source AndroidManifest.xml, it can be migrated automatically to the namespace value in the build.gradle file using the AGP Upgrade Assistant; please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information. at com.android.build.gradle.internal.core.dsl.impl.VariantDslInfoImpl.getNamespace(VariantDslInfoImpl.kt:77) at com.android.build.gradle.internal.core.dsl.impl.VariantDslInfoImpl.initApplicationId(VariantDslInfoImpl.kt:128) at com.android.build.gradle.internal.core.dsl.impl.VariantDslInfoImpl.access$initApplicationId(VariantDslInfoImpl.kt:37) at com.android.build.gradle.internal.core.dsl.impl.VariantDslInfoImpl$applicationId$2.invoke(VariantDslInfoImpl.kt:94) at com.android.build.gradle.internal.core.dsl.impl.VariantDslInfoImpl$applicationId$2.invoke(VariantDslInfoImpl.kt:91) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at com.android.build.gradle.internal.core.dsl.impl.VariantDslInfoImpl.getApplicationId(VariantDslInfoImpl.kt:91) at com.android.build.gradle.internal.core.dsl.impl.ComponentDslInfoImpl$mergedFlavor$2.invoke(ComponentDslInfoImpl.kt:67) at com.android.build.gradle.internal.core.dsl.impl.ComponentDslInfoImpl$mergedFlavor$2.invoke(ComponentDslInfoImpl.kt:63) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at com.android.build.gradle.internal.core.dsl.impl.ComponentDslInfoImpl.getMergedFlavor(ComponentDslInfoImpl.kt:63) at com.android.build.gradle.internal.core.dsl.impl.VariantDslInfoImpl.getMinSdkVersion(VariantDslInfoImpl.kt:63) at com.android.build.api.variant.impl.VariantBuilderImpl.(VariantBuilderImpl.kt:48) at com.android.build.api.variant.impl.LibraryVariantBuilderImpl.(LibraryVariantBuilderImpl.kt:35) at com.android.build.api.variant.impl.LibraryVariantBuilderImpl_Decorated.(Unknown Source) at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:67) at org.gradle.internal.instantiation.generator.AsmBackedClassGenerator$InvokeConstructorStrategy.newInstance(AsmBackedClassGenerator.java:1948) at org.gradle.internal.instantiation.generator.AbstractClassGenerator$GeneratedClassImpl$GeneratedConstructorImpl.lambda$newInstance$0(AbstractClassGenerator.java:510) at org.gradle.internal.deprecation.DeprecationLogger$4.create(DeprecationLogger.java:295) at org.gradle.internal.deprecation.DeprecationLogger.whileDisabledThrowing(DeprecationLogger.java:273) at org.gradle.internal.instantiation.generator.AbstractClassGenerator$GeneratedClassImpl$GeneratedConstructorImpl.newInstance(AbstractClassGenerator.java:509) at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.doCreate(DependencyInjectingInstantiator.java:64) ... 193 more

nu00 commented 1 year ago

I've tried this fork (https://github.com/AyushmanG26/receive_sharing_intent) and it works. It simply bump the kotlin version to 1.6.21, because (if I understanded well) the new version of gradle, wich is required by the new Android Studio Update "Flamingo", only support 1.5.20 and higher

matheszabi commented 1 year ago

Why should I downgrade MY IDE and MY SERTTINGS? Shouldn't this be upgraded instead to the latest version? I have decided to rewrite my whole app in Android Kotlin ( native ) instead of using Flutter, due to this library and the incompatibility of Kotlin , gradle

nu00 commented 1 year ago

I didn’t say you have to downgrade your ide and settings, i’ve said that if you really need this problem solved quickly you have to use that fork or wait fir the developer to bump the kotlin version

matheszabi commented 1 year ago

I said: it needs to be repaired this library, updated. It is unacceptable to expect to downgrade IDE, or settings

nu00 commented 1 year ago

Nobody here said that you need to downgrade your ide, it’s obvious that this package need to be updated, but keep in mind that this is an open source project, you don’t pay to use it, so you don’t have any right to claim anything. When the developers have time, they will fix it.

matheszabi commented 1 year ago

Also keep min mind I have reported an issue and not asked for your advice!

AndersonVD commented 1 year ago

I've tried this fork (https://github.com/AyushmanG26/receive_sharing_intent) and it works. It simply bump the kotlin version to 1.6.21, because (if I understanded well) the new version of gradle, wich is required by the new Android Studio Update "Flamingo", doesn't support 1.5.20 and higher

Thank youuu!!

nu00 commented 1 year ago

Also keep min mind I have reported an issue and not asked for your advice!

Sorry, next time I will avoid giving you advice since you are so good on your own