Set up Android Studio

androidnewbietech

New member
Oct 21, 2023
1
0
1
Visit site
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.
 

B. Diddy

Senior Ambassador
Moderator
Mar 9, 2012
164,092
2,784
113
Visit site
Welcome to Android Central! I moved this to the Software Development forum for more specific traffic.
 

Trending Posts

Forum statistics

Threads
938,685
Messages
6,890,536
Members
3,156,332
Latest member
jmerlo