Hey,
Running into an issue when packaging for android. Followed the steps from here How to Set Up Android SDK and NDK For Your Unreal Engine Development Environment | Unreal Engine 5.3 Documentation | Epic Developer Community
but getting this error.
UATHelper: Packaging (Android (ASTC)): > Could not resolve all files for configuration ‘:classpath’.
UATHelper: Packaging (Android (ASTC)): > Could not resolve com.android.tools.build:gradle:7.4.2.
UATHelper: Packaging (Android (ASTC)): Required by:
UATHelper: Packaging (Android (ASTC)): project :
UATHelper: Packaging (Android (ASTC)): > No matching variant of com.android.tools.build:gradle:7.4.2 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute ‘org.gradle.plugin.api-version’ with value ‘7.5’ but:
UATHelper: Packaging (Android (ASTC)): - Variant ‘apiElements’ capability com.android.tools.build:gradle:7.4.2 declares a library, packaged as a jar, and its dependencies declared externally:
UATHelper: Packaging (Android (ASTC)): - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
UATHelper: Packaging (Android (ASTC)): - Other compatible attribute:
UATHelper: Packaging (Android (ASTC)): - Doesn’t say anything about org.gradle.plugin.api-version (required ‘7.5’)
UATHelper: Packaging (Android (ASTC)): - Variant ‘javadocElements’ capability com.android.tools.build:gradle:7.4.2 declares a runtime of a component, and its dependencies declared externally:
UATHelper: Packaging (Android (ASTC)): - Incompatible because this component declares documentation and the consumer needed a library
UATHelper: Packaging (Android (ASTC)): - Other compatible attributes:
UATHelper: Packaging (Android (ASTC)): - Doesn’t say anything about its target Java version (required compatibility with Java 8)
UATHelper: Packaging (Android (ASTC)): - Doesn’t say anything about its elements (required them packaged as a jar)
UATHelper: Packaging (Android (ASTC)): - Doesn’t say anything about org.gradle.plugin.api-version (required ‘7.5’)
UATHelper: Packaging (Android (ASTC)): - Variant ‘runtimeElements’ capability com.android.tools.build:gradle:7.4.2 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
UATHelper: Packaging (Android (ASTC)): - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
UATHelper: Packaging (Android (ASTC)): - Other compatible attribute:
UATHelper: Packaging (Android (ASTC)): - Doesn’t say anything about org.gradle.plugin.api-version (required ‘7.5’)
UATHelper: Packaging (Android (ASTC)): - Variant ‘sourcesElements’ capability com.android.tools.build:gradle:7.4.2 declares a runtime of a component, and its dependencies declared externally:
UATHelper: Packaging (Android (ASTC)): - Incompatible because this component declares documentation and the consumer needed a library
UATHelper: Packaging (Android (ASTC)): - Other compatible attributes:
UATHelper: Packaging (Android (ASTC)): - Doesn’t say anything about its target Java version (required compatibility with Java 8)
UATHelper: Packaging (Android (ASTC)): - Doesn’t say anything about its elements (required them packaged as a jar)
UATHelper: Packaging (Android (ASTC)): - Doesn’t say anything about org.gradle.plugin.api-version (required ‘7.5’)