Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path Issues #4

Open
timea-techgirl opened this issue Dec 8, 2022 · 3 comments
Open

Path Issues #4

timea-techgirl opened this issue Dec 8, 2022 · 3 comments

Comments

@timea-techgirl
Copy link

Error running command. I don't know how to fix this. Can you please help?

Reading config file.
AndroidNdkDirectory: G:\Workspace\mono_rebundle\Tools\android-sdk\android-ndk-r25b
BundleApiPath: G:\Workspace\mono_rebundle\Tools\mkbundle-api.h
ToolPath: G:\Workspace\mono_rebundle\Tools\mkbundle\
SupportedAbis: armeabi-v7a
Low ValidateAndroidSdkLocation: ``, result=False
Low Looking for Android SDK...
Low ValidateAndroidNdkLocation: `G:\Workspace\mono_rebundle\Tools\android-sdk\android-ndk-r25b`, result=True
Low ValidateJavaSdkLocation: ``, result=False
Unhandled exception. System.InvalidOperationException: Could not determine Android SDK location. Please provide `androidSdkPath`.
   at Xamarin.Android.Tools.AndroidSdkInfo..ctor(Action`2 logger, String androidSdkPath, String androidNdkPath, String javaSdkPath) in G:\Mono_Rebundle\xamarin-android\external\Java.Interop\external\xamarin-android-tools\src\Xamarin.Android.Tools.AndroidSdk\AndroidSdkInfo.cs:line 23
   at Xamarin.Android.Tasks.MonoAndroidHelper.RefreshAndroidSdk(String sdkPath, String ndkPath, String javaPath, TaskLoggingHelper logHelper) in G:\Mono_Rebundle\xamarin-android\src\Xamarin.Android.Build.Tasks\Utilities\MonoAndroidHelper.cs:line 119
   at Mono_Xamarin_MkBundle.MakeBundleNativeCodeExternal.RunTask() in G:\Mono_Rebundle\MakeBundleNativeCodeExternal.cs:line 51
   at Mono_Xamarin_MkBundle.Program.Main(String[] args) in G:\Mono_Rebundle\Program.cs:line 127

@JohnG1985
Copy link

The error message "Could not determine Android SDK location. Please provide androidSdkPath" indicates that the Android SDK could not be found.

To fix this error, you will need to provide the location of the Android SDK on your computer. This can be done by setting the androidSdkPath variable in the configuration file for the program that is generating the error. The location of the Android SDK will be different depending on where you installed it on your computer.

Once you have determined the location of the Android SDK, you can update the configuration file for the program to specify the correct path. This may involve modifying the AndroidSdkDirectory and/or AndroidNdkDirectory variables in the configuration file, depending on the specific program you are using.

After updating the configuration file, you should be able to run the program again without encountering the "Could not determine Android SDK location" error. However, if you are still having trouble, you may need to check the path to the Android SDK to ensure that it is correct and that the Android SDK is installed correctly on your computer.

@timea-techgirl
Copy link
Author

@JohnG1985 I know but the config file doesn't allow the SDK path and I have tried every path and location but it just doesn't work. All other apps detect it well, never had issues with paths.

Have you got this app to work?

@timea-techgirl
Copy link
Author

@met94-zz I fixed the paths in the source. Now when I run the command to produce-stub, I get this error.

[mkbundle stderr]
[mkbundle stderr] Unhandled Exception: System.MissingMethodException: Method not found: 'System.String[] System.String.Split(Char, System.StringSplitOptions)'.
[mkbundle stderr]    at MakeBundle.Main(String[] args)
[mkbundle stderr]
Low [mkbundle stdout]
Error Code XA5102Conversion from assembly to native code failed. Exit code -532462766

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants