-
Notifications
You must be signed in to change notification settings - Fork 53
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
error BG0000: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. #1292
Comments
Can you provide a minimal repro? I do not see this error with the following project: <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<RootNamespace>issue_1292</RootNamespace>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<IsTrimmable>true</IsTrimmable>
</PropertyGroup>
<ItemGroup>
<AndroidMavenLibrary Include="io.ktor:ktor-utils-jvm" Version="2.3.8" />
<AndroidMavenLibrary Include="org.slf4j:slf4j-api" Version="1.7.36" />
<AndroidMavenLibrary Include="io.ktor:ktor-io-jvm" Version="2.3.8" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Kotlin.StdLib" Version="2.0.21.1" />
<PackageReference Include="Xamarin.Kotlin.StdLib.Common" Version="2.0.21.1" />
<PackageReference Include="Xamarin.Kotlin.StdLib.Jdk7" Version="2.0.21.1" />
<PackageReference Include="Xamarin.Kotlin.StdLib.Jdk8" Version="2.0.21.1" />
<PackageReference Include="Xamarin.KotlinX.Coroutines.Android" Version="1.9.0.1" />
<PackageReference Include="Xamarin.KotlinX.Coroutines.Core.Jvm" Version="1.9.0.1" />
<PackageReference Include="Xamarin.KotlinX.Coroutines.Jdk8" Version="1.9.0.1" />
</ItemGroup>
</Project> |
Looking at the relevant code: java-interop/src/Java.Interop.Tools.JavaTypeSystem/Adapters/ManagedApiImporter.cs Lines 194 to 195 in 4f06201
This appears to be a case where:
Example: here [Register ("doThing", "(I)", "")]
public unsafe void DoThing () { ... } |
@jpobst Here is the binding source code. BTW, I attempted to debug this source, but failed following the guidelines. Can you advise? |
I get this error trying to build this project:
I'm not sure how this file is supposed to get to that path, though I do have a |
@jpobst Can you install Gradle and/or Android Studio? The other dependencies require gradle to download Android artifacts. |
@jpobst Have you been able to check it out? Any chances to guide me to debug on my machine? |
I already have Android Studio on my machine, so it apparently requires something more than that.
To debug locally, you would need to:
|
Errror when creating binding library for
io.ktor:ktor-utils-jvm:2.3.8
The text was updated successfully, but these errors were encountered: