You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce-
Remove the variable ANDROID_SDK from eclipse if using, and delete the preferences.txt folder. Remove any system environment with ANDROID_SDK if present.
On startup, it shows "cannot find an Android SDK" dialog box. Choose any option either "choose sdk path mannually" or "download SDK automatically. After the process, values are not getting saved as "android.sdk.path" in the preferences.txt file.
Restarting the program opens the same dialog again and Preferences.get("android.sdk.path") returns null on logs. I have confirmed the SDK path was used without any space in Preference.set and was accessible by Preferences.get on runtime.
The text was updated successfully, but these errors were encountered:
@rupeshkumar22 I think the issue is that Preferences.set() does not save the preferences to the file immediately, the PDE writes to the preferences.txt file only on exit.
@codeanticode thanks for the information, I checked the file after closing PDE window. Might be the case that process was running in background. I will check again. Thanks!
It's strange that Preferences.set("android.sdk.path", folder.getAbsolutePath());
not committing the changes to the preferences.txt file. During runtime if logs are used-
Preferences.get("android.sdk.path")
returns the correct value just after Preferences.set("android.sdk.path", folder.getAbsolutePath());But after closing the program Preferences.txt file does not contain the attribute and value. So the next time on program startup load returns null as the value was not stored earlier in preferences.txt file not even with Preferences.set("android.sdk.path", folder.getAbsolutePath());
Steps to reproduce-
Remove the variable ANDROID_SDK from eclipse if using, and delete the preferences.txt folder. Remove any system environment with ANDROID_SDK if present.
On startup, it shows "cannot find an Android SDK" dialog box. Choose any option either "choose sdk path mannually" or "download SDK automatically. After the process, values are not getting saved as "android.sdk.path" in the preferences.txt file.
Restarting the program opens the same dialog again and
Preferences.get("android.sdk.path")
returns null on logs. I have confirmed the SDK path was used without any space inPreference.set
and was accessible byPreferences.get
on runtime.The text was updated successfully, but these errors were encountered: