Skip to content

Android SDK root and JDK path being overwritten #9

Description

@Soviut

From what I can tell, the plugin modifies the EditorPrefs plist file, or the EditorPrefs directly, which removes the Android SDK and JDK path on OSX. The plist file on OSX is located at ~/Library/Preferences/com.unity3d.UnityEditor.plist

I tried creating a build step that uses PListBuddy to write the two paths into the plist file on each build, but this seemed to get stomped by the Unity3D build plugin.

The workaround I used was to set the EditorPrefs directly in my BuildScript.cs

EditorPrefs.SetString("JdkPath",        "/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home");
EditorPrefs.SetString("AndroidSdkRoot", "/Users/Shared/Jenkins/Library/Android/sdk");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions