I have a legacy app and no desire to update it but Google Play told me I have to increase my targetSdkVersion to at least 31. After some experimentation, I changed it to 32.
I now get three red lines in my build.gradle:
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
Hovering on one of these, it told me I needed to upgrade to AndroidX, which I did by choosing Refractor>Migrate to AndroidX... It did some stuff, don't know what. The red lines are still there. If I try to rebuild, I get fifteen errors in values.xml saying "Android resource linking failed" on lines starting:
<declare-styleable name="Constraint"><attr name="androidrientation"/>...
I have upgraded Android Studio to the latest version. Any suggestions what to try next? I find it enormously frustrating that a) I am forced to change my target SDK for an app that hasn't changed in three years and b) when I do, it seems to open a great can of worms and I'm beginning to panic that I will never get this app to compile again.
I have decades of experience as a developer but I don't really understand gradles and stuff. I just want to write some Java and turn it into an app. I seem to end up fighting the developer tools all the way.
I now get three red lines in my build.gradle:
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
Hovering on one of these, it told me I needed to upgrade to AndroidX, which I did by choosing Refractor>Migrate to AndroidX... It did some stuff, don't know what. The red lines are still there. If I try to rebuild, I get fifteen errors in values.xml saying "Android resource linking failed" on lines starting:
<declare-styleable name="Constraint"><attr name="androidrientation"/>...
I have upgraded Android Studio to the latest version. Any suggestions what to try next? I find it enormously frustrating that a) I am forced to change my target SDK for an app that hasn't changed in three years and b) when I do, it seems to open a great can of worms and I'm beginning to panic that I will never get this app to compile again.
I have decades of experience as a developer but I don't really understand gradles and stuff. I just want to write some Java and turn it into an app. I seem to end up fighting the developer tools all the way.