Opened 13 years ago

Last modified 7 years ago

#33341 assigned defect

android @16 Problem with permissions folder

Reported by: leohidalgo@… Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: android

Description

I installed the android port version 16, is I installed in my application directory / macports / developer / android-manager this run / opt/local/share/java/android....._x86/tools/android which no starts as not being run as root can not create directories or add-ons platform.

Not really as it should, as I there are 2 options:

  1. Direct Run the command from the terminal using sudo, so in this case the problem would be the application that is installed in the application directory is not assigned the sudo.

Thus creating a new avd in my local directory is created as root: _developer so this would not be correct

  1. If the application in the application directory is correct the problem would be to assign execute permission missing directory g + w android-sdk-mac_x86 for Android-Manager to run this to create the directories that need to be executed correctly, another problem also be that in doing so the directories are created as my_username: _developer.

Greetings.

Change History (4)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to krischik@…

comment:2 Changed 13 years ago by derek.munneke@…

+1

After a fresh install;

$ /opt/local/share/java/android-sdk-mac_x86/tools/android 
Exception in thread "main" java.lang.RuntimeException: Failed to create /opt/local/share/java/android-sdk-mac_x86/platforms.
	at com.android.sdklib.SdkManager.loadPlatforms(SdkManager.java:327)
	at com.android.sdklib.SdkManager.createManager(SdkManager.java:143)
	at com.android.sdkmanager.Main.parseSdk(Main.java:222)
	at com.android.sdkmanager.Main.run(Main.java:119)
	at com.android.sdkmanager.Main.main(Main.java:103)

To resolve:

$ sudo chmod g+w /opt/local/share/java/android-sdk-mac_x86

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Is this still a problem with version 20?

comment:4 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Owner: krischik@… deleted
Status: newassigned
Note: See TracTickets for help on using tickets.