[Nix-dev] android-studio: Unable to run mksdcard SDK tool

Edward Tjörnhammar ed at cflags.cc
Mon Feb 23 19:54:32 CET 2015


On Mon, Feb 23, 2015 at 08:11:56AM +0100, Edward Tjörnhammar wrote:
> Hi Cody,
>
> I'll look into it asap, thanks.

Now I've looked at it.

The problem occurs because the downloaded SDK from google contains static binaries that have a bad interpreter. For now I've added a work around in nixpkgs master.

You will need to complete the wizard one time, which will fail. The second time just select cancel and radiocheck that you don't want to see the wizard again.

>
> On Sun, Feb 22, 2015 at 09:20:44PM -0600, Cody Goodman wrote:
> >    [cody at cody-nixos:~]$ nix-env -iA nixos.pkgs.idea.android-studio
> >    replacing old a**android-studio-1.1.0b2a**
> >    installing a**android-studio-1.1.0b2a**
> >    building path(s)
> >    a**/nix/store/2dbhhwl1qswy2b7ii0cybi1vrfqq1h23-user-environmenta**
> >    created 1266 symlinks in user environment
> >
> >    [cody at cody-nixos:~]$ nix-env -iA nixos.pkgs.androidsdk_4_4
> >    replacing old a**android-sdk-24.0.1a**
> >    installing a**android-sdk-24.0.1a**
> >
> >    [cody at cody-nixos:~]$ android-studio
> >    [A  11094]A  ERROR - tRunWizard$SetupProgressStep$1 - Unable to run
> >    mksdcard SDK tool.
> >    com.android.tools.idea.welcome.WizardException: Unable to run mksdcard SDK
> >    tool.
> >    A A A  at
> >    com.android.tools.idea.welcome.installoperations.CheckSdkOperation.perform(CheckSdkOperation.java:132)
> >    A A A  at
> >    com.android.tools.idea.welcome.installoperations.CheckSdkOperation.perform(CheckSdkOperation.java:44)
> >    A A A  at
> >    com.android.tools.idea.welcome.InstallOperation.execute(InstallOperation.java:68)
> >    A A A  at
> >    com.android.tools.idea.welcome.InstallOperation$OperationChain.perform(InstallOperation.java:151)
> >    A A A  at
> >    com.android.tools.idea.welcome.InstallOperation.execute(InstallOperation.java:68)
> >    A A A  at
> >    com.android.tools.idea.welcome.InstallOperation$OperationChain.perform(InstallOperation.java:149)
> >    A A A  at
> >    com.android.tools.idea.welcome.InstallOperation.execute(InstallOperation.java:68)
> >    A A A  at
> >    com.android.tools.idea.welcome.InstallOperation$OperationChain.perform(InstallOperation.java:149)
> >    A A A  at
> >    com.android.tools.idea.welcome.InstallOperation.execute(InstallOperation.java:68)
> >    A A A  at
> >    com.android.tools.idea.welcome.InstallOperation$OperationChain.perform(InstallOperation.java:149)
> >    A A A  at
> >    com.android.tools.idea.welcome.InstallOperation.execute(InstallOperation.java:68)
> >    A A A  at
> >    com.android.tools.idea.welcome.InstallComponentsPath.runLongOperation(InstallComponentsPath.java:301)
> >    A A A  at
> >    com.android.tools.idea.welcome.FirstRunWizard.doLongRunningOperation(FirstRunWizard.java:126)
> >    A A A  at
> >    com.android.tools.idea.welcome.FirstRunWizard.access$000(FirstRunWizard.java:41)
> >    A A A  at
> >    com.android.tools.idea.welcome.FirstRunWizard$SetupProgressStep$1.run(FirstRunWizard.java:160)
> >    A A A  at
> >    com.android.tools.idea.welcome.FirstRunWizardHost$LongRunningOperationWrapper.run(FirstRunWizardHost.java:432)
> >    A A A  at
> >    com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:471)
> >    A A A  at
> >    com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
> >    A A A  at
> >    com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
> >    A A A  at
> >    com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
> >    A A A  at
> >    com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
> >    A A A  at
> >    com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:380)
> >    A A A  at
> >    com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419)
> >    A A A  at
> >    java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >    A A A  at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> >    A A A  at
> >    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> >    A A A  at
> >    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> >    A A A  at java.lang.Thread.run(Thread.java:745)
> >    A A A  at
> >    com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)
> >    [A  11096]A  ERROR - tRunWizard$SetupProgressStep$1 - Android Studio 1.1
> >    Beta 2A  Build #AI-135.1711524
> >    [A  11096]A  ERROR - tRunWizard$SetupProgressStep$1 - JDK: 1.7.0_75
> >    [A  11096]A  ERROR - tRunWizard$SetupProgressStep$1 - VM: OpenJDK 64-Bit
> >    Server VM
> >    [A  11096]A  ERROR - tRunWizard$SetupProgressStep$1 - Vendor: Oracle
> >    Corporation
> >    [A  11097]A  ERROR - tRunWizard$SetupProgressStep$1 - OS: Linux
> >    [A  11097]A  ERROR - tRunWizard$SetupProgressStep$1 - Last Action:A
> >    [A  12384]A A  WARN - api.vfs.impl.local.FileWatcher - Watcher terminated
> >    with exit code 0
> >
> >    [cody at cody-nixos:~]$ # what.... sdk is installed and I can use mksdcard
> >    tool...
>
> > _______________________________________________
> > nix-dev mailing list
> > nix-dev at lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev



> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150223/433aa49a/attachment.bin 


More information about the nix-dev mailing list