diff --git a/FAQ.md b/FAQ.md index 00dc9388..0d93bf26 100644 --- a/FAQ.md +++ b/FAQ.md @@ -37,7 +37,7 @@ This is a [known issue](https://github.com/j2objc-contrib/j2objc-gradle/issues/3 if you don't have any tests. If you are doing `./gradlew clean build`, try instead `./gradlew clean && ./gradlew build`. -When you don't have any test source files, The plugin creates a placeholder to force the +When you don't have any test source files, the plugin creates a placeholder to force the creation of a test binary; this is done during project configuration phase, but `clean` deletes this file before `build` can use it. @@ -98,6 +98,19 @@ call even if you do not need to customize any other `j2objConfig` option. } +### Why is my Android build so much slower after adding j2objc? + +Depending on your Android Studio 'run configuration', you may be building more of your Gradle +project than is neccessary. For example if your run configuration includes a general 'Make' +task before running, it will build all your gradle projects, including the j2objc parts. +Instead make sure your run configuration only performs the `:android:assembleDebug` task: + +Run Configuration + +At the command line, if you want to use the debug version of your android app, +make sure you are running `./gradlew :android:assembleDebug` and not for example +`./gradlew build`. + ### Error: implicit declaration of function 'JreRelease' is invalid in C99 [-Werror,-Wimplicit-function-declaration] JreRelease(this$0_) See: [How do I enable ARC for my Objective-C classes?](#how-do-i-enable-arc-for-my-objective-c-classes?)