Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do I upgrade Gradle version?  Changing the text to 7.3.3 did not work.  Please advise.

I think there is there an Android version issue that makes older code unable to build.

This is an Android Studio build fail that that happens immediately with sample code from github.  I am confident that this code should build because the error, by appearance, looks like something simple as if to be caused by a conflect between an update to the Android OS and the java code.

This example code was taken straight from github.  I am confident that this code is supposed to build but I suspect something in the compiler of Android Studio has changed, updated, or with a newer version of the Android operating system something needs to be updated in the source code of an app.  This is because a build and/or gradle sync has this error immediately.  Nothing major has changed in the code.  I suspect this might be a common thing and I suspect someone must know something about this and how to fix it.  Please advise.

On the first line of build.gradle there is:
apply plugin: 'com.android.application'
and the error is

http://www.millionthompson.com/images/work/044.png

So I did a search to find there there is a "=7.1"

And I found this:

http://www.millionthompson.com/images/work/042_Screenshot%202022-10-13%20231354.png

Which is here:

http://www.millionthompson.com/images/work/043_Screenshot%202022-10-13%20231825.png

How do I upgrade Gradle version?  Changing the text to 7.3.3 did not work.  Please advise.

http://millionthompson.com/images/work/015.png


What I have tried:

Tried rebuilding.
Tried changing the version number by hand.
And rebuilding.
Did not change the error.
Posted
Updated 13-Oct-22 21:30pm

1 solution

You cannot change product numbers by hand, as that does not actually do the upgrade. See android studio update gradle - Google Search[^] for possible approaches.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900