java.exe exited with code 2

abdoelzamalkawyabdoelzamalkawy EGMember ✭✭✭

hello
i have this error

i don't know what is this problem about
it shows up after updating some nuget packages

i started to hate xamarin platform because of all of this unreasonable errors :angry: :angry:
so please any one help me i can stand for that any more

Best Answer

  • N_BauaN_Baua IN ✭✭✭✭✭
    Accepted Answer

    @abdoelzamalkawy said:
    where is this log ?

    https://developer.xamarin.com/guides/cross-platform/troubleshooting/questions/version-logs/

    https://blog.xamarin.com/enhanced-device-logging-in-visual-studio/

    N Baua

Answers

  • N_BauaN_Baua INMember ✭✭✭✭✭
    edited August 2017

    @abdoelzamalkawy,
    Check or Post your Log

    This information is insufficient.

    Regards,
    N Baua

  • abdoelzamalkawyabdoelzamalkawy EGMember ✭✭✭

    where is this log ?
    i don't know where is it !!
    @N_Baua

  • N_BauaN_Baua INMember ✭✭✭✭✭
    Accepted Answer

    @abdoelzamalkawy said:
    where is this log ?

    https://developer.xamarin.com/guides/cross-platform/troubleshooting/questions/version-logs/

    https://blog.xamarin.com/enhanced-device-logging-in-visual-studio/

    N Baua

  • abdoelzamalkawyabdoelzamalkawy EGMember ✭✭✭
    edited August 2017

    @N_Baua
    here is the log file
    do you see the problem
    https://us.v-cdn.net/5019960/uploads/editor/tm/ao2f6dv02wb3.txt

  • abdoelzamalkawyabdoelzamalkawy EGMember ✭✭✭
  • N_BauaN_Baua INMember ✭✭✭✭✭

    You'll have to read the logs for the failed items.
    Its really simple, (Yeah sometimes annoying too)

    I quickly checked.
    Permission failure: android.permission.RECORD_AUDIO

    If you're using something to access the hardware you need to set the permissions in the project like below,
    Unchecked means you do not have permission and so on.

    I haven't gone through the entire log due to time constraint, however this should give you hint.

    Hope it helps.

    Regards,
    N Baua

  • abdoelzamalkawyabdoelzamalkawy EGMember ✭✭✭

    @N_Baua
    i did it but nothing happened
    all this happened because i want to use some plugin, this plugin needs all xamarin plugins to be updated
    but when i updated them, download my plugin and try to build this error appears

  • N_BauaN_Baua INMember ✭✭✭✭✭

    @abdoelzamalkawy ,

    Hmm, Most of the time, we ignore this right under our assumptions.
    Check the plugin's minimum requirement from the SDK purpose as well as also check if the plug-in you are using is compatible with the project architecture (i.e. PCL vs native).

    There can be some configurations need to be done, in some of the plug-ins or some plug-ins have further dependencies.
    So you have to be very clear on what grounds the said plug-in is failing.

    What I can assume here and advice at least is.

    • run a complete SDK update with latest (or required) complete set of components.
    • Make a blank App - PCL or whatever,
    • Update to the latest nugget packages all the way down to the platform specific projects.
    • Make a hello world app, with minimum supported platform (say level 15) and build platform (latest SDK or say level 22 or whatever you want to support maximum)
    • Run the app just to say Hello word in Release mode.
    • Now since your POC is working, add a plug-in in to the PCL and other required projects, making sure all the dependent components / plug-in are installed along with.

    If this is done, I am sure you'll be out of error.

    Hope it helps.

    • N Baua
  • abdoelzamalkawyabdoelzamalkawy EGMember ✭✭✭

    i have un installed this plugin
    and the error disappeared
    i just want to know why???
    @N_Baua

  • NamyslawSzymaniukNamyslawSzymaniuk USMember ✭✭✭✭

    In such stupid issues, ALWAYS remember try to remove everything from bin and obj project and sub-projects folders, as well as hidden .vs folder, clean packages folder, restore packages, clean and rebuild.
    It solves most of such issues.

  • abdoelzamalkawyabdoelzamalkawy EGMember ✭✭✭

    @NamyslawSzymaniuk
    i don't like this way to solve my problem
    i want to know why
    i need to control my project not the project controls my work.

Sign In or Register to comment.