When I select Fire’s option to edit user interface files in Android Studio it’s starting up the application only I am unable to modify UI files in the visual editor as it says Preview is unavailable until after a successful project sync
.
This was due to a compiler error which was:
ERROR: Could not find method jackOptions() for arguments [build_cqmsnz1jqa3c5b41ldrxjvgzq$_run_closure1$_closure3$_closure6@2289e8c0] on DefaultConfig_Decorated{name=main, dimension=null, minSdkVersion=DefaultApiVersion{mApiLevel=15, mCodename='null'}, targetSdkVersion=DefaultApiVersion{mApiLevel=27, mCodename='null'}, renderscriptTargetApi=null, renderscriptSupportModeEnabled=null, renderscriptSupportModeBlasEnabled=null, renderscriptNdkModeEnabled=null, versionCode=1, versionName=1.0, applicationId=org.me.XAndroid, testApplicationId=null, testInstrumentationRunner=null, testInstrumentationRunnerArguments={}, testHandleProfiling=null, testFunctionalTest=null, signingConfig=null, resConfig=null, mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}, mWearAppUnbundled=null} of type com.android.build.gradle.internal.dsl.DefaultConfig.
Open File` after removing the following bit the visual editor was working again:
jackOptions {
enabled true
}
Maybe worth looking into? I assume this file gets generated by Fire as it’s not available in my Android project directory.
I am using:
Elements compiler: Version 10.0.0.2394 (develop) built on talax, 20190411-060527. Commit 4e838c1.
Android Studio 3.3.2
Build #AI-182.5107.16.33.5314842, built on February 15, 2019
JRE: 1.8.0_152-release-1248-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.4