Set up Android Studio

androidnewbietech

New member
Oct 21, 2023
1
0
1
Hello, I have just started learning Android and I have a problem with the simple Hello World application.

When I start Android Studio I create a new project > Empty Activity > API 26 Oreo (or any other) > Finish.
When I press on Build and Preview it always appears the message:

"1. Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs. "

Points 2 and 3 are similar.

It forces me to upgrade the project to API 34, and then I can develop the app, but it only works on <1% of the devices, so I want to be able to create an empty project compatible with other API versions. I've tried many things that I have found on internet and ChatGTP, but they does not work.

Any idea? Thanks in advance.
 
Welcome to Android Central! I moved this to the Software Development forum for more specific traffic.
 

Forum statistics

Threads
954,600
Messages
6,962,155
Members
3,163,082
Latest member
Nidal123