Issue: Unexpected end to build process: Thread "main" encountered java.lang.NoSuchMethodError

After updating my OS X to Mavericks, I launched Android Studio.

Upon opening the newly updated Android Studio, I encountered an error message saying "error running git"

Error:Abnormal build process termination: Exception in thread "main" java.lang.NoSuchMethodError: org.apache.log4j.PropertyConfigurator.configure(Ljava/io/InputStream;)V at org.jetbrains.jps.cmdline.BuildMain.initLoggers(BuildMain.java:339) at org.jetbrains.jps.cmdline.BuildMain.(BuildMain.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jetbrains.jps.cmdline.Launcher.main(Launcher.java:58)

Answer №1



Chances are, you have:

  • Two distinct editions of log4j integrated into your project
  • Your log4j.jar file is replicated.

The former scenario is the most probable
Hope this resolves any issues ;-)

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Accessing the session object within an Express middleware function is crucial for

This is my unique Express middleware setup: var app = express() .use(express.cookieParser()) .use(express.session({secret: 'HiddenSecret'})) .use(express.bodyParser()) .use(function displaySession(req, res, next) { consol ...

Implementing an onchange function with Dojo JavaScript for selection

I am using dojo.js to create a customized dropdown box with scroll functionality, which is not available in the standard select statement. Although I have successfully implemented the dropdown menu, I am struggling to trigger a function using the standard ...

What is the best way to dynamically load my React component?

Is there a way to dynamically load my React toolbar component based on state changes? constructor(props) { super(props); this.state = { currentPageNumber: 0, }; } render(){ return( <View> ...

Request not being sent to the server by the code

I'm encountering an issue with sending a request from my app via the phonegap build solution and a push notifications plugin. Below is the code snippet: function tokenHandler(result) { var channelid; if (subParam == 2) { ...

Issue with starting Android Studio's emulator

I'm facing an issue with my emulator not launching the AVD. When I try to open the AVD, it starts the process but then nothing happens. There are no errors, and in the task manager, I can see processes like adb.exe and emulator.exe running. This probl ...

Javascript - Iterating through nested arrays and objects to apply filtering

I am currently trying to fetch specific arrays based on a certain criterion. I am a bit unsure about how to go about filtering the arrays, so I thought I would seek clarification here. Essentially, I have a list of courses and I want to extract all the c ...

Is there a way to retrieve the values of all identical properties within an object?

I am currently running npm test on the object books. My objective is to retrieve the value of the title property from the books object. When I invoke the function getTheTitles(books), both 'Book' and 'Book2' should be returned. However, ...

The longevity of the recycle view feature is here to stay

UPDATED: I am working on displaying a message of "no items in the list" when there are no items to display in a recyclerview within a fragment. This is my current approach: Within my fragment: <RelativeLayout xmlns:android="http://schemas.android.com ...

Insert HTML elements using javascript

Is it possible to change this JavaScript code in the following way: divElement.appendChild(document.createTextNode("<h7>Optie " + inputNumber + ": </h7>")); What would be the best approach to achieve this? ...

Encountering a redeclaration issue in Angular 8 while including an external JavaScript file

I have manually added an external JS script to my component. The script is functioning correctly, but when I try to inject it again, I encounter issues. var div = this.document.getElementById("div-element"); div.appendChild(script); My attempt t ...

Is there a way to perform nested association counting in Sequelize?

Exploring ways to tally product reviews within nested associations using a specific query. const user = await User.findOne({ where: { id: req.query.user }, attributes: ["id", "name"], include: [ { model: Category, as: "interest ...

I seem to be stuck on the Pokemon Damage Calculator kata on codewars. I've been trying to pass it, but I

My function seems to be working well, but I'm having trouble passing all the tests. Can anyone offer some assistance? You can find the kata at this link: function calculateDamage(yourType, opponentType, attack, defense) { let key = yourType + opp ...

Receiving a null value from JSpinner

Is there a way to handle null values when a JSpinner is empty? Currently, when calling the getValue() function, it returns 0.0. public JFormattedTextField getTextField(JSpinner spinner) { JComponent editor = spinner.getEditor(); if (editor insta ...

Is the script failing to retrieve the innerHTML content?

Here is a snippet of HTML code: <div id="team_players"> <h3>Players</h3> <button class="bold-btn" onclick="teamAct('player_list');">Refresh List ↻</button> <table> <thead> <tr> ...

Is it possible that attaching the click event directly to the ID is effective while attaching it to the childnode is not working

Can anyone help me with a problem I'm having? When I try to target a specific element by accessing its child nodes, the click event doesn't work. However, if I use getElementById and then attach the click event through that method, it works. Idea ...

IE9 seems to be causing issues with the unobtrusive javascript MVC3 validation, while it functions perfectly in IE10 and Safari

In the login page, I have a textbox and password control displayed as follows: @Html.TextBoxFor(m => m.Login) @Html.PasswordFor(m => m.Password) To validate these fields, I have created jQuery functions: $('#txtLogin').blur(function () { ...

Having trouble executing the npm start command for ReactJS

Below is the code snippet from my file named server.js if(process.env.NODE_ENV !== 'production') { require('dotenv').parse() } const express = require('express') const app = express() const expressLayouts = require(' ...

Looping through Angular promises sequentially

I am faced with a dataset consisting of the following information. $scope.orders = [ { material: 'A', quantity: 32, orderNumber: 'dummy'}, { material: 'A', quantity: 65, orderNumber: 'dummy'}, ...

Why am I receiving a "Cannot read property 'style' of undefined" error when using the Nanoscroller?

This is the code snippet I've been working on: <ul id="selectProfileOptions_IC" class="dropdownToggle_cont" ></ul> Under this ul element, I have listed some names. To enable scrolling functionality, I employed nanascroller in my project ...

What are the alternative methods to execute a React.js application without using react-scripts?

After creating my React.js app using the command below: npx create-react-app my-app I'm now looking to modify the package.json script section to run the app without react-scripts. How can I achieve this? "scripts": { "start&quo ...