Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Reverend-Speed · Oct 14, 2017 at 10:22 AM · androidadmobandroid sdkdependenciesjar

How can I upgrade my Android Jar Dependencies?

I'm in the middle of making a commercial mobile game with AdMob advertising, under an advancing deadline.

After my desktop crashed and burned, I was forced to transfer the project to my crappy laptop, using Unity Collaborate (which is awesome).

Upon loading the project in Unity, I started to get several popups in Unity titled, 'Android Jar Dependencies', asking me whether I should Replace or Keep play-services-ads version 11.0.4 with version 10.2.6.

I have no interest in silencing these pop-ups (to do this, I would open the Android Resolver (Asset Store > Google > Android Resolver > Settings etc). Instead:

I want to update my Android Jar Dependencies to match those on my desktop (now being repaired) - ie. the latest version of the Dependencies.

In order to do this, I had the Android Studio / SDK update itself.

During the update process, my Comodo antivirus virtualised the silent_install_wrapper.bat for Intel Haxm installation and also virtualised the apksigner.jar.

I've tried to update the Haxm installation manually, but I don't know where to begin with the apksigner.jar.

Building the app while keeping the 11.0.4 files gives me this error (some details obscured to protect client & my machine):

 CommandInvokationFailure: Failed to sign APK package.
 C:\Android\sdk\build-tools\25.0.3\apksigner.bat sign --ks "I:/Unity/****.keystore" --ks-pass stdin  --ks-key-alias "****" --key-pass stdin  "C:\Users\***\Temp/StagingArea/Package.apk"
 
 stderr[
 'PWs' is not recognized as an internal or external command,
 operable program or batch file.
 Failed to load signer "signer #1"
 java.io.FileNotFoundException: I:\Unity\****.keystore (The system cannot find the path specified)
     at java.io.FileInputStream.open0(Native Method)
     at java.io.FileInputStream.open(Unknown Source)
     at java.io.FileInputStream.<init>(Unknown Source)
     at java.io.FileInputStream.<init>(Unknown Source)
     at com.android.apksigner.ApkSignerTool$SignerParams.loadKeyStoreFromFile(ApkSignerTool.java:733)
     at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCertsFromKeyStore(ApkSignerTool.java:636)
     at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCerts(ApkSignerTool.java:580)
     at com.android.apksigner.ApkSignerTool$SignerParams.access$200(ApkSignerTool.java:534)
     at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:229)
     at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:87)
 Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
 ]
 stdout[
 Keystore password for signer #1: 
 ]
 exit code: 2
 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
 UnityEditor.Android.Command.RunWithStdin (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg, System.String[] input)
 UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg, System.String[] stdin)
 UnityEditor.Android.PostProcessor.Tasks.BuildAPK.SignPackage (UnityEditor.Android.PostProcessor.PostProcessorContext context)
 UnityEditor.Android.PostProcessor.Tasks.BuildAPK.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
 UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Again, I am not looking to suppress the error messages, nor am I looking to revert to 10.2.6 - I wish to update to 11.0.4 so I can build my app with AdMob.

I'm at my wits end here, folks. Can't find any useful solutions. Can anybody point me in the right direction?

Many thanks in advance,

--Rev

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
-1
Best Answer

Answer by Reverend-Speed · Oct 20, 2017 at 10:24 PM

I got the correct answer from Wolfos, on the Unity Forums...

I think the .aar versions are actually related to the Admob version you're using. Maybe try redownloading the plugin from here.

Downloading and installing the UnityPackage from the link above triggered the Google Resolver in the project, configuring Admob and removing older files. Job done. Hope this is of some use to someone...!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

149 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity + Admob dependencies 0 Answers

Admob plugin dependencies 0 Answers

"Gradle failed to fetch dependencies" 3 Answers

Unity[Android] AdMob error 0 Answers

GoogleMobileAds: As soon as I add my real banner ID, it stops working. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges