AppsFlyerSDK / appsflyer-capacitor-plugin

AppsFlyer SDK plugin for Capacitor
MIT License
13 stars 22 forks source link

Build fail for capacitor v5 #126

Open vincentsartoko opened 1 month ago

vincentsartoko commented 1 month ago

Hi, when doing gradlew bundleRelease, it throws this error:

> Configure project :appsflyer-capacitor-plugin
could not found package.json from ENV variable
searching for package.json recursively
node_modules directory not found in any parent directories.

* What went wrong:
A problem occurred evaluating project ':appsflyer-capacitor-plugin'.

> Cannot get property 'androidSdkVersion' on null object
vincentsartoko commented 1 month ago

Found the issue, when android file is not on the same directory as the frontend file, it will throw error due to file not found.

Maybe try to modify this line? node_modules/appsfluer-capacitor-plugin/android/build.gradle

String getPackageJsonPath() {
    return findProperty("APPSFLYER_PACKAGE_JSON") ?: "$rootDir/../node_modules/appsflyer-capacitor-plugin/package.json"
}
github-actions[bot] commented 1 month ago

👋 Hi @vincentsartoko and Thank you for reaching out to us. In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com. When submitting the ticket, please specify: