Category : gradle

When I try using "./gradlew run" on my gradle projects, I receive this error: * What went wrong: Execution failed for task ‘:app:compileJava’. > java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module @0x1fa4cfc5) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0x1fa4cfc5 I have tried on multiple different ..

Read more

I am generating an apk of a project that I developed using React Native. But when I run the command ./gradlew assembleRelease The following error appears: > Configure project :react-native-audio WARNING: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’. It will be removed in version 5.0 of the Android Gradle plugin. ..

Read more

When I try to build my project at Android Studio, I receive the following error: FAILURE: Build failed with an exception. Where: Settings file ‘C:UserswaldeDesktopJavaSciptReact Nativestudymasterandroidsettings.gradle’ line: 35 What went wrong: A problem occurred evaluating settings ‘studymaster’. > Could not get unknown property ‘project’ for settings ‘studymaster’ of type org.gradle.initialization.DefaultSettings. Here is my settings.gradle: https://www.evernote.com/shard/s572/sh/04c2359e-1593-01fa-e4fc-d3c33ac7fb08/a6df495457069669d5e0db14408fbc2b ..

Read more

Always after generating .aab with ./gradlew clean bundleProdRelease app crashes in a real device. Unable to load script. Make sure you’re either running a Metro server (run ‘react-native start’) or that your bundle ‘index.android.bundle’ is packaged correctly for release. This only happens with .abb ./gradlew clean bundleProdRelease but not with .apk ./gradlew clean assembleProdRelease. Apparently ..

Read more

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:react-native-community_masked-view:parseReleaseLibraryResources’. > Could not resolve all files for configuration ‘:react-native-community_masked-view:androidApis’. > Failed to transform android.jar to match attributes {artifactType=android-platform-attr, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. > Execution failed for PlatformAttrTransform: C:UserszenqiAppDataLocalAndroidSdkplatformsandroid-28android.jar. > C:UserszenqiAppDataLocalAndroidSdkplatformsandroid-28android.jar * Try: Run with –stacktrace option to get the stack trace. Run ..

Read more