lcuis / search_choices

Widget to let the user search through a keyword string typed on a customizable keyboard in a single or multiple choices list presented as a dropdown in a dialog box or a menu.
MIT License
51 stars 42 forks source link

Android fails with gradle 8 #114

Closed sweetfa closed 1 month ago

sweetfa commented 1 year ago

With gradle 8 the android/build.gradle requires a namespace to be defined.

i.e.

android { compkeSdkversion 33 namespace 'li.kod.search_choices' ....

lcuis commented 1 year ago

Hello @sweetfa ,

Thanks for raising this!

I tried to follow the steps mentioned here: https://stackoverflow.com/questions/76182805/gradle-error-linked-to-namespace-on-build-gradle-file

I added the namespace to the android/build.gradle file:

android {
    namespace 'li.jod.search_choices'

    compileSdkVersion 33
...
}

But I still get this error:

Namespace not specified. Please specify a namespace in the module's build.gradle file like so:

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.
samalapsy commented 6 months ago

@lcuis I think I once got this error and I used my app's applicationId in my app's build.gradle and I don't remember seeing that error again. Can you give that a try?

lcuis commented 1 month ago

@sweetfa I know this is a very old topic but I believe the recent changes with release 2.2.9 and 2.2.8 address this issue. If not, please reopen. Thanks!