-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(android): update gradle #13682
feat(android): update gradle #13682
Conversation
I tested on Windows with both JDK 17.0.5 and 19 and while both work, the app builds fine, and the app runs fine, I see the following error in the log output:
Note that these errors do NOT occur with SDK 11.1.0.GA. Is there a way to make Gradle happy? Side note: Gradle's |
@cb1kenobi I'm using 12.0.0 for a while now and already used to that "error". It doesn't affect the apps. Everything from 7.0.x to 7.1.0 or higher breaks the build order as it doesn't have the folders/cpp files ready to continue to build the SDK. But the whole gradle part is not that easy to follow for me as i triggers node stuff and other things. Raising that will fix many warnings and we'll have to do that at some point. For now we can ignore those warnings and I've added flags already that disable Android 33 warnings. |
@hansemannn What do you make of the Gradle errors in SDK 12? They seem harmless. You think this PR is safe to merge? I'm a little concerned with not being able to update the gradle-plugin. Maybe that's something I can take a peek at in the next week or so, but I honestly don't know anything about Gradle. |
The error tag is internal, for Gradle its a warning |
That would be awesome if someone else could have a look. There are two places to increase the version: Both have to match otherwise it breaks modules. The module gradle isn't a problem, that works fine. It's just the first one that builds the SDK. |
Sorry, I misread the output. You are correct sir! |
I'm definitely for including it, but maybe not in this GA already to ensure we have more time to properly test. I will also discuss this with @janvennemann and @tpretzel to see if we can get the logs fixed. |
it's a master PR not for 12.0.0, was supposed to be for the next release 😉 |
@hansemannn @cb1kenobi added a fix for the warning color: |
I accidentally merged tidev/titanium-cli#611 too quickly and reverted it in tidev/titanium-cli#612. The correct place to fix the Gradle warning is in the |
I'll check those places 👍 Sounds like a better way to fix it |
Adding two more logs here to have all at one place:
and
|
@m1ga Can you maybe give a summary on the challenges / todos of this change? We plan to tackle this in Q4 and it would help a lot to know which open issues there are right now. IIRC, we want to prevent breaking modules. But if it can be solved by doing so, it would be a bearable solution, looking at how many times this happened (for good reasons) over the last SDKs. |
this PR was fine. We had had issues testing it on Windows. The problematic one is #13579 when updating |
Tested this PR again: Fedora Linux, Android 14/Pixel 7 Java 17 (current max version we support)
Java 20
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Windows, Java 20, built basic 2-tab app, and everything works!
I'm soooo confused. After working with 12.3.0 (with this PR) and Java 20 the whole day I've tried to build a different PR with Android Studio a few minutes ago and now I'm getting:
the whole time. I even switched Java back to 17 and delete the whole |
@m1ga I didn't see a problem. You're on Linux, right? |
a restart fixed the error! Which is not really helping me to find the source of it. I'll keep investigating and check if the issue appears again. It started once I've opened Android Studio trying to build an old PR. Perhaps that mixed up gradle somehow. |
Update Gradle tools (not the plugins! Those still fail to build 😞 ) to 7.6
Features:
Tested:
Note:
Changes are by gradle itself using this line. Only this file is changed