# \#java-sdk

**URL:** https://developer.squareup.com/forums/tag/java-sdk/45.md

[Latest](https://developer.squareup.com/forums/latest.md) · [Categories](https://developer.squareup.com/forums/categories.md) · [Tags](https://developer.squareup.com/forums/tags.md)

---

## [Optional\<\> fields in new Java API](https://developer.squareup.com/forums/t/optional-fields-in-new-java-api/21801)

<div class="topic-metadata">

**Author:** [@edward](https://developer.squareup.com/forums/u/edward)\
**Replies:** 4\
**Last updated:** [April 8, 2025, 4:02pm UTC](https://developer.squareup.com/forums/t/optional-fields-in-new-java-api/21801 "2025-04-08T16:02:52Z")

</div>

The new Java SDK has practically all fields has Optional\<\> rather than the previous String, int, etc. This makes it much more cumbersome to work with - e.g. location.name().orElse(null). Is there some feature in the SD…

---

## [Gradle Build Fails: cannot resolve org.apache.maven:maven-core:${project.prerequisites.maven}](https://developer.squareup.com/forums/t/gradle-build-fails-cannot-resolve-org-apache-maven-project-prerequisites-maven/8632)

<div class="topic-metadata">

**Author:** [@hungdng92](https://developer.squareup.com/forums/u/hungdng92)\
**Replies:** 1\
**Last updated:** [January 22, 2024, 10:10pm UTC](https://developer.squareup.com/forums/t/gradle-build-fails-cannot-resolve-org-apache-maven-project-prerequisites-maven/8632 "2024-01-22T22:10:52Z")

</div>

Hi all. I have a problem when adding dependency into the file build.gradle implementation 'com.squareup:square:27.1.0.20230119' I got the error when build Execution failed for task ‘:compileJava’. Could not resolve…

---

## [JavaScript causes pages to load too slowly on mobile devices](https://developer.squareup.com/forums/t/javascript-causes-pages-to-load-too-slowly-on-mobile-devices/7545)

<div class="topic-metadata">

**Author:** [@Andes](https://developer.squareup.com/forums/u/Andes)\
**Replies:** 10\
**Last updated:** [April 17, 2023, 3:27pm UTC](https://developer.squareup.com/forums/t/javascript-causes-pages-to-load-too-slowly-on-mobile-devices/7545 "2023-04-17T15:27:52Z")

</div>

JavaScript causes pages to load too slowly on mobile devices. Was directed here in other discussion forums. Has anyone had a similar problem? The tool used is the “Lighthouse” web speed test tool my site is

---

## [Java 11 Support?](https://developer.squareup.com/forums/t/java-11-support/7782)

<div class="topic-metadata">

**Author:** [@geemike](https://developer.squareup.com/forums/u/geemike)\
**Replies:** 6\
**Last updated:** [January 20, 2023, 6:33pm UTC](https://developer.squareup.com/forums/t/java-11-support/7782 "2023-01-20T18:33:45Z")

</div>

The Quickstart claims that the Java SDK supports Java version 8 or later but unfortunately the io.apimatic dependencies require 1.8 - at least as far as I can tell because I get unresolved dependency errors when trying t…

---

## [SettlementsAPI, Java and Square Balance](https://developer.squareup.com/forums/t/settlementsapi-java-and-square-balance/2317)

<div class="topic-metadata">

**Author:** [@kriegfrj](https://developer.squareup.com/forums/u/kriegfrj)\
**Replies:** 4\
**Last updated:** [April 22, 2022, 12:55am UTC](https://developer.squareup.com/forums/t/settlementsapi-java-and-square-balance/2317 "2022-04-22T00:55:03Z")

</div>

Hi all, I pray you’re well. I’m looking at using Square to integrate with our accounting system and I’m looking at auto reconciling. Couple of questions: is there an API for querying your current Square balance? I n…
