WhatsApp / stickers

This repository contains the iOS and Android sample apps and API for creating third party sticker packs for WhatsApp.
Other
2.73k stars 1.7k forks source link

[Android] I cannot build src #951

Closed williamvietnam closed 1 year ago

williamvietnam commented 1 year ago

I pull src to build in my computer on Android Studio Flamingo | 2022.1 Patch 1 Step 1: Android Studio require I change gradle from 6.5 to 7.2 Step 2: I remove code snippet if (android.defaultConfig.applicationId == "com.example.samplestickerapp") { throw new GradleException("Your applicationId is currently com.example.samplestickerapp, please change your applicationId to a different string in app/build.gradle in line 10") } in build.gralde(app) After display error: Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @52639e65

Can you help me please

williamvietnam commented 1 year ago

I resolved this problem

amit-ilan commented 4 months ago

@williamvietnam Can you please share your insights?

amit-ilan commented 4 months ago

A possible quick fix is to explicitly open the java.io package to app module by adding a JVM argument to gradle.properties like this: org.gradle.jvmargs=-Xmx1536m --add-opens=java.base/java.io=ALL-UNNAMED