I have been trying to complete this step for 2 days and can't find a solution.
I am running IntelliJ on Mac 10.13.2
After creating a brand new project with nothing more than the "Hello World" Title screen I attempt to build artifacts.
I have my project settings correct for what I can tell and set the output to be native dmg.
the error I get is:
Error:Java FX Packager:
BUILD FAILED
/Users/silverapple/Library/Caches/IdeaIC2017.3/compile-server/asi-sync_34d86456/_temp_/build.xml:29: Error: Bundler "DMG Installer" (dmg) failed to produce a bundle.
Total time: 1 minute 13 seconds
Error:Java FX Packager: Buildfile: /Users/silverapple/Library/Caches/IdeaIC2017.3/compile-server/asi-sync_34d86456/_temp_/build.xml
build artifact:
No base JDK. Package will use system JRE.
No base JDK. Package will use system JRE.
Building DMG package for JavaFXApp
Error:Java FX Packager: fx:deploy task has failed.
I have googled up and down and can not figure out why I can not get a build.
The weird thing is that this process produces a mounted dmg package on the desktop that runs fine. But nothing in the build folder.
Jan 17th, 2018
Posting the work around I found here as it may not be obvious to some. It wasn't to me as a Mac Noob who thought a dmg build was the only way to go.
This is a known issue and can be tracked here...
If you specify "img" as the native bundle in IntelliJ Project Settings you will get an .app package in the build folder.
The user can copy this to the Application folder and run it from there.
NOTE: For me the app was un-signed so it was blocked by GateKeeper. Command click allowed me to open it and set it to a trusted app.
Related
There is a build configuration error (Gradle sync failed) starting a new simple Android project using IntelliJ IDEA and the installed Android SDK (API 28) to include C++ support.
If I can remember, it worked when first installed, but now any attempt to compile and build the project using the IntelliJ GUI fail. LLDB, CMake and NDK are all installed correctly in the correct folders and the local.properties file references the location of the SDK and NDK.
All attempts to refresh linked C++ projects or clear caches (invalidate caches/restart) make no difference.
CMake_server_log.txt suggests:
CMAKE SERVER: CMake Error: CMake was unable to find a build program
corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You
probably need to select a different build tool.
Build output (edited to remove path):
Cause: executing external native build for cmake CMakeLists.txt
There appears to be a lack of configuration to complete the build or missing PATH or ENVIRONMENT variable. Should I manually try to change this or add some extra code to the build.gradle or CMakeLists.txt? There is the ninja application in the cmake bin directory.
Even importing other NDK sample projects fail (after downloading any required dependencies e.g. Gradle version).
Reinstalling LLDB, CMake and the NDK via SDK Tools do not solve the issue either.
I get the impression that I need to completely uninstall IntelliJ IDEA on Windows and remove any remaining folders/files associated with it, before reinstalling it. That would be a shame as IntelliJ IDEA works for other type of Android projects not requiring native C++ support.
Be it an example project, freshly downloaded from Play Framework's website, or my project which is derived from that with a few changes to templates - nothing big - IntelliJ just can't seem to find the appropriate dependencies or sources necessary for Play development.
I've already installed Scala plugin for IntelliJ, which includes support for Play Framework. I'll outline the process that I've followed, after reading multiple articles from Play's documentation as well as questions asked on here though no answer has proven incredibly useful as yet.
Open Project Settings within IntelliJ IDEA Ultimate 2017.2.6
Click Modules > [+] > Import Module
Find build.sbt within project root
Import with default SBT settings:
Download: [checked] Library sources, [checked] SBT source
[unchecked] Use SBT shell for build and import (requires sbt 0.13.5+)
Project JDK: [9.0 (java version 9.0.1)] -- Could this be the problem? (compatibility)
SBT compiles and I get this error, which I somewhat dismissed but reading it now seems to be somewhat telltale but I am unsure of what: https://pastebin.com/tXbHQdek
Running the site works, using sbt run, but when opening .java sources, IntelliJ marks errors upon import play.mvc.* though import views.html.* works fine. Adding framework support for Play 2.x seems to do next to nothing, as no project settings seem to change, and the error is not resolved.
This behavior exists with a clean IntelliJ 2017 Ultimate install (as of today) and an example project from Play Framework with no modifications, so if a solution cannot be found I'll probably consider posting an issue on one or more of their issue trackers.
Any ideas on how to get my Play Framework development environment working?
Thanks :3
This did not originally occur to me but in my search through the Play Framework Google group, I found a suggestion on a somewhat recent post to uninstall Java 9 as Play's dependencies are not yet compatible with it and hence won't resolve.
For anyone who might come across this issue, hopefully this saves you some days headbanging:
Optional - Uninstall JDK and JRE 9
Install JDK 8 (comes with JRE)
From within IntelliJ, File > Project Structure > SDKs > [any Java 9 JDK] > [-]
[+] > `Find your JDK 8 installation folder
32 bit: C:/Program Files (x86)/Java/jdk****/
64 bit: C:/Program Files/Java/jdk****/
Where **** is your Java version, such as 1.8_152, as in jdk1.8_152
Press OK. You'll get a warning that the project SDK is missing or similar, so click the link it provides you to configure that and select your newly configured JDK.
Everything should work from there, just straight away after IntelliJ indexes, which can be tracked in the bottom right corner as with all other operation progress.
I want to import libgdx project to Intellij IDEA 14 with gradle 2.4. But I can not do. Because when I try to import, Intellij gives error that "resolve error, Already created an SDK Loader with different SDK Path".
I set sdk.dir in local.proporties file. Also I did not set ANDROID_HOME in path.
How can I proceed?
I had the same problem. I wonder if it was caused by using IntelliJ after using Android Studio on the same machine? I got rid of this problem by deleting ~/.gradle but I think that caused other problems, because the libgdx project wouldn't build the desktop module before running it, then kept hanging with high CPU load when I clicked the build button. I ran the project's gradlew in a terminal to see what would happen, and it downloaded a new zip of gradle and seems to have fixed the problem.
When I type in the IntelliJ Editor I get major lags from multiple seconds, until my typed word gets displayed.
I'm running IntelliJ with Maven and Git to build Android Projects.
idea.exe, idea64.exe and idea.bat did produce the same issues.
My mistake was to apply the Android SDK in my Project settings.
Goto File | Project Structure | SDKs
Remove all Android related SDK's
Add only your default Java JDK like JDK 1.7 (default under: C:\Program Files\Java\)
Goto the Modules Tab
Apply the JDK to all modules or set ProjectSDK as it should now be the JDK1.7
As I tried to solve this problem for several days including adding the IDEA_JDK Variables
I thought sharing this solution could be helpful
I'm currently struggling to get Android Studio running on my windows box. The problem seems to be that I moved my home-directory to a different drive than C. (Because I have a tiny SSD for the system only and the rest is on my HDD)
I changed the gradle settings from android studio to the correct folder on drive E but when I try to create a new project this error pops up:
Failed to import Gradle project: Could not install Gradle distribution from 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'. java.io.FileNotFoundException: C:\Users\myuser\.gradle\wrapper\dists\gradle-1.6-bin etc.
I need the IDE to download it to E:\Users\myuser\etc.
Any idea where I can configure that? The settings from the settings dialog seem to be ignored.
it happens from time to time when gradle server has a bad day. Usually when they publish new version.