Error building app - need help

Hi there,
In the past I made a Scripture App with our draft translation just for my personal use on my phone. It has been a while since I did an updated version with changes from the translation. I had previously made the app when we had Paratext 8. Now I have Paratext 9 and I managed to update the pathways for the books. I also previously used a much older version of the Scripture App builder, and I updated a little while ago and now have version 11.0.4, which I know is not the latest, but people should still be able to help me with the issues anyway. I also have a new computer from when the last time I made the app, so that could potential cause issues too.

My internet connection is not the greatest, so that could be the problem, but I just want to rule out any other possible causes.

Even though I am connected to the internet, it says that it is doing it in offline mode and that it needs to do it online for the first build (even though I have done other builds in the past, maybe it cannot find them, or maybe because the previous ones were on such an old version, they aren’t helpful).

Apart from the online/offline issue, it also mentions the following as issues:
Start copy and paste:
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘a’.

Could not resolve all files for configuration ‘:classpath’.
Could not resolve com.android.tools.build:gradle:8.1.1.
Required by:
project :
No cached version of com.android.tools.build:gradle:8.1.1 available for offline mode.
No cached version of com.android.tools.build:gradle:8.1.1 available for offline mode.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at…

End copy and paste.

Can anyone suggest what to do to help with these errors. I see that it says to try run with --stacktrace and several other things. But I don’t know HOW to Run with --stacktrace, etc. Could someone help me to do that?

Thanks!
Julie

I don’t know exactly what the problem is but I would recommend that you install the latest SAB version 12.4. Also, did you update the Android SDK and the JDK? Perhaps you are running older versions of these components?

It seems like you have offline mode turned on. It is likely since you said your internet connection is not great. This setting is in Tools > Settings > Build Settings.

I agree with @Friedo that you should be using SAB 12.4 and install latest Android SDK using it. If you are publishing to Google Play, they will not accept a build using SAB 11 since it uses older Android SDK version.

Chris

@Friedo and @ChrisHubbard

Thank you for both your replies. I am currently downloading version 12.4, it is going to take a while.

This is what it says about the SDK version currently before updating:
SDK Tools Version: cmdline-tools 9.0
SDK Build Tools Version: 34.0.0
SDK Platform Tools Version: 34.0.5

And for JDK it says:
openjdk version “17.0.7” 2023-04-18 LTS

What are the current version numbers?

I have tried telling it to build the app again, since the internet seems better today, and it looks like it is getting further, but it seems to be at a standstill after this message:
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

Or maybe it is just still taking a while to move on to the next step.

I did check the offline mode, and it is not switched on, although if there is no internet connection, it will automatically default to that.

It seems like my internet connection might have been the problem, as it finally managed to make the app today. (After 7 hours I am still working on downloading the install file for version 12.4, would be good if it weren’t such a large file!)