- Could not initialize class org.codehouse.groovy.runtime.InvokeHelper
- java.io.IOException: Unable to delete the directory on Windows 10
ERROR watch... ENOSPC
when runningyarn start
on Linux- adb not found
- 'adb server version (x) doesn't match this client (y)'
- adb shows no-permission
- Build failed with an exception
- App hangs on loading screen
bundle exec fastlane certificates
hangs onCloning remote git repo...
Failed to get language code from native side!
in the simulator- Gradle
resource string/BUILD_CONFIG_APP_NAME not found
No BUILD_CONFIG_NAME supplied
Invalid BUILD_CONFIG_NAME supplied
- App crashing with java.lang.UnsatisfiedLinkError
- App crashing without any error
- XCode can't find 'your/directory/native/ios/Integreat/de.lproj/InfoPlist.strings'
- XCode can't find $BUILD_CONFIG_APP_ICON
- Other assorted XCode problems
The current gradle version may not work with Java 14 or 16. Switch to a lower java version (e.g. v11) and make sure it is actually used:
cd android
./gradlew --version
and check that the version specified under JVM
is correct.
To uninstall a Java version on MacOS you can follow these instructions.
Possible solutions:
- Switch to Linux :)
- Windows Security > Virus & threat protection settings >
- Controlled folder access > Manage Controlled folder access > Set to
Off
- Exclusions > Add or Remove exclusions >
- Add the workspace folder
- Maybe also add user specific configuration locations and appdata folder if required
- Controlled folder access > Manage Controlled folder access > Set to
- Run the IDE as administrator
- For first time android developer open IntelliJ with the Android Support plugin installed, create an Android project and start the app.
Increase the number of inotify watches by running
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
There are 2 ways to fix this:
- Link
/usr/bin/adb
to the adb client you installed (usually the one at~/Android/sdk/platform-tools/adb
) - Add
~/Android/sdk/platform-tools/adb
to your $PATH
Make sure you only have one version of adb installed. Probably your system has adb installed and another version is available in the Android SDK. There are 2 ways to fix this:
- Link
/usr/bin/adb
to the adb client you installed (usually the one at~/Android/sdk/platform-tools/adb
) - Add
~/Android/sdk/platform-tools/adb
to your $PATH
Setup udev rules to allow user accounts to access your phone.
- What went wrong:
Execution failed for task ':app:installDebug':
> com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_VERSION_DOWNGRADE
- Fix
Uninstall already existing application from target device
- What went wrong:
The app starts, but remains in the loading screen for long time
- Fix
Close the app on the device complete and re-open it on the device
Copy the last command printed to the console (git clone ...
) and execute it manually for more information, errors or password prompts.
_ Make sure to have read and write access to the app-credentials repo.
_ Make sure to have git properly set up on the machine (using ssh protocol instead of https). * The ssh key has to be added permanently in order for the command to work: cd ~/.ssh/; ssh-add
.
- Go to
(Device) Settings
>General
>Language and Region
. - Change
iPhone Language
andRegion
. - Reload the app.
Environment variable BUILD_CONFIG_NAME
not set before building the app via gradle.
More information on how to set the environment variable can be found here.
Environment variable BUILD_CONFIG_NAME
not set before running the packager.
More information on how to set the environment variable can be found here.
Invalid environment variable BUILD_CONFIG_NAME
set before running the packager.
All available build configs can be found here.
The following error occurs:
java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libflipper.so caused by: dlopen failed: library "libevent_extra-2.1.so" not found result: 0
- Delete the folder
android/app/build
- Delete the app
- Reinstall the app (
yarn android
)
The app is installed correctly on the android emulator but crashes without any error message on start up. To solve this issue delete /android/app/build and android/.gradle folder.
These translations should usually be generated during the build, if they aren't, generate them manually with
yarn workspace translations manage write-plist Integreat --translations "../translations/translations.json" --destination ../native/ios/Integreat
Then run bundle exec pod install
in /ios, clean the Build folder in XCode(Shift + Cmd + K), restart XCode, and try again.
Should also be generated during the build, manual command here: yarn workspace build-configs manage write-xcconfig integreat ios --directory ../native/ios
Then run bundle exec pod install
in /ios, clean the Build folder in XCode(Shift + Cmd + K), restart XCode, and try again.
It often helps to rerun yarn install
in /native and bundle exec pod install
in /ios, then clean the build
folder in XCode (Shift + Cmd + K), and then restart XCode.
If working on an M1, some of the pods might not be working correctly yet. Go into the Build Settings of the project,
to Architecture > Excluded Architectures. The Debug and Release area both should have arm64
under Any iOS Simulator SDK
.