Search Unity

package "-S" in Temp\StagingArea\gen

Discussion in 'Android' started by Stranger-Games, Oct 30, 2014.

  1. Stranger-Games

    Stranger-Games

    Joined:
    May 10, 2014
    Posts:
    393
    Hello,

    I have Android game that used to build fine until I added admob library, chartboost and AppLovin, but I really think admob is the culprit.
    First I got the "google_play_services_version" not defined error but I moved version.xml from inside Assets/Plugins/Android/google-play-services_lib/res/values to Assets/Plugins/Android/res/values and I got another strange error.

    When I tried the command mentioned in the error from cmd I got this error.

    I searched for "-S\R.java" file in the Temp\StagingArea\gen folder and I found it exactly like com\company\game\R.java except for the package line that says

    package -S;

    I do not understand why two R.java are generated and why this '-S' package is generated.

    Is it because I have two res folders?
    Assets/Plugins/Android/google-play-services_lib/res
    Assets/Plugins/Android/res

    Thank you very much for advance.
     
  2. Stranger-Games

    Stranger-Games

    Joined:
    May 10, 2014
    Posts:
    393
    Update, I forgot to add adactivity.jar to google-play-services_lib/libs, but when I add it I get another error.

    Strangely enough this CMD does not generate errors from cmd.
     
    Last edited: Oct 30, 2014
  3. Stranger-Games

    Stranger-Games

    Joined:
    May 10, 2014
    Posts:
    393
    Solved by installing the latest JDK.
    Thanks very much.