Suport de The Movie Database

Hi Folks,

I'm trying to fetch images using Coil and AsyncImage with JetPack Compose. I keep getting the following error: Unable to resolve host "api.themoviedb.org": No address associated with hostname

I'm able to access an image in the web browser by pasting in a sample url into address bar directly: https://image.tmdb.org/t/p/w500/lxM6kqilAdpdhqUl2biYp5frUxE.jpg Looks like the api_key is not required to access images but is required to fetch data, which I'm able to. here is a code snippet

 Row(
            modifier = Modifier
                //.border(2.dp, Color.Black, shape = CircleShape)
                .background(color = Color.DarkGray)
                .fillMaxWidth()
                //.height(80.dp)
                .padding(5.dp)
        ){
            AsyncImage(
                model = ImageRequest.Builder(
                    LocalContext.current)
                    .data("https://image.tmdb.org/t/p/w500/lxM6kqilAdpdhqUl2biYp5frUxE.jpg")
                    .build(),
                contentDescription = null
            )

i added the dependency to my gradle file aswell.

// coil
    implementation("io.coil-kt:coil-compose:2.5.0")

any thoughts or suggestions are welcomed, thanks in advance.

2 resposta (a les p脿gines 1 de 1)

Jump to last post

Nevermind. Turns out bad emulator. ;)

@greg.cunnington said:
My wife is from General Santos City.
We both live in Australia
she would like to see the movie REWIND with Dingdong Dantes & Marian Rivera.
How is that possible ?
regards
Greg Cunnington

Are you referring to this Movie?
Rewind (2023)
https://www.themoviedb.org/movie/1143183-rewind

TMDb does not offer watching movies or TV shows.
You can watch it if it is available on www.justwatch.com
If so, you will find a link to the service just below the film poster on the home page.
https://www.themoviedb.org/movie/1143183-rewind
I tried to check if it is available in Australia and it appears that it is not.
https://www.themoviedb.org/movie/1143183-rewind/watch?translate=false&locale=AU

No trobeu una pel路l铆cula o una s猫rie? Inicieu la sessi贸 per a crear-la.

Global

s centra la barra de cerca
p obre el men煤 del perfil
esc tanca una finestra oberta
? obre la finestra de dreceres de teclat

A les p脿gines de materials

b torna enrere (o la superior quan sigui aplicable)
e ves a la p脿gina d鈥檈dici贸

A les p脿gines de temporades

(fletxa dreta) ves a la temporada seg眉ent
(fletxa esquerra) ves a la temporada anterior

A les p脿gines d'episodis

(fletxa dreta) ves a l'episodi seg眉ent
(fletxa esquerra) ves a l'episodi anterior

A totes les p脿gines d'imatges

a obre la finestra d'afegir imatges

A totes les p脿gines d'edici贸

t obre el selector de traducci贸
ctrl+ s envia el formulari

A les p脿gines de debat

n crea un debat nou
w canvia l'estat de visualitzaci贸
p canvia p煤blic/privat
c tanca o obre
a obre activitat
r resposta al debat
l ves a la darrera resposta
ctrl+ enter envieu el vostre missatge
(fletxa dreta) p脿gina seg眉ent
(fletxa esquerra) p脿gina anterior

Configuracions

Desitgeu valorar o afegir aquest element a una llista?

Inicieu la sessi贸