android / codelab-android-paging

Jetpack Paging codelab
Apache License 2.0
494 stars 263 forks source link

Android Paging Advanced codelab project cannot be used with Android Studio Flamingo #241

Open ParticleCore opened 1 year ago

ParticleCore commented 1 year ago

The current project files available in the following codelab:

https://developer.android.com/codelabs/android-paging

Cannot be used on Android Studio Flamingo:

Android Studio Flamingo | 2022.2.1 Patch 2
Build #AI-222.4459.24.2221.10121639, built on May 12, 2023
Runtime version: 17.0.6+0-b2043.56-9586694 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 16
Registry:
    external.system.auto.import.disabled=true
    debugger.watches.in.variables=false
    ide.text.editor.with.preview.show.floating.toolbar=false
    ide.instant.shutdown=false
    gradle.version.catalogs.dynamic.support=true

Non-Bundled Plugins:
    com.intellij.plugin.adernov.powershell (2.0.10)

The following error is displayed, and there is no available information explaining how to resolve this problem.

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.

As it stands the project cannot be used other than for code reference only.

matale commented 1 year ago

Use the fixed one I have posted here. https://github.com/android/codelab-android-paging/issues/240