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

Xamarin.Android.Aapt2.targets(123,3): error APT2144 com.stripe:stripe-android:20.40.4 #8923

Open
tuyen-vuduc opened this issue May 4, 2024 · 6 comments
Assignees
Labels
Area: App+Library Build Issues when building Library projects or Application projects. need-attention A xamarin-android contributor needs to review

Comments

@tuyen-vuduc
Copy link

Android application type

.NET Android (net7.0-android, net8.0-android, etc.)

Affected platform version

VS2022 17.9.6, .NET 8.0.204

Description

I cannot compile my binding library for this only native library com.stripe:stripe-android:20.40.4. All of its dependencies were bound well, but it isn't.

The source code can be found here.

Steps to Reproduce

  1. Clone or download this repo at branch
  2. Check out branch feat/com.stripe--stripe-android---20.40.4
  3. Run sh bind.sh --artifact com.stripe:stripe-android:20.40.4 in the terminal (git bash)

Did you find any workaround?

No. not yet.

Relevant log output

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.85\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144:  [~\dotnet-binding-utils\src\android\com.stripe\stripe-android\binding\Com.Stripe.StripeAndroid.csproj::TargetFramework=net8.0-android34.0]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.85\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144: invalid file path '~\dotnet-binding-utils\src\android\com.stripe\stripe-android\binding\obj\Release\net8.0-android34.0\lp\234.stamp'. [~\dotnet-bindin 
g-utils\src\android\com.stripe\stripe-android\binding\Com.Stripe.StripeAndroid.csproj::TargetFramework=net8.0-android34.0]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.85\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144:  [~\dotnet-binding-utils\src\android\com.stripe\stripe-android\binding\Com.Stripe.StripeAndroid.csproj::TargetFramework=net8.0-android34.0]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.85\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144: invalid file path '~\dotnet-binding-utils\src\android\com.stripe\stripe-android\binding\obj\Release\net8.0-android34.0\lp\237.stamp'. [~\dotnet-bindin 
g-utils\src\android\com.stripe\stripe-android\binding\Com.Stripe.StripeAndroid.csproj::TargetFramework=net8.0-android34.0]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.85\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144:  [~\dotnet-binding-utils\src\android\com.stripe\stripe-android\binding\Com.Stripe.StripeAndroid.csproj::TargetFramework=net8.0-android34.0]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.85\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144: invalid file path '~\dotnet-binding-utils\src\android\com.stripe\stripe-android\binding\obj\Release\net8.0-android34.0\lp\239.stamp'. [~\dotnet-bindin 
g-utils\src\android\com.stripe\stripe-android\binding\Com.Stripe.StripeAndroid.csproj::TargetFramework=net8.0-android34.0]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.85\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144:  [~\dotnet-binding-utils\src\android\com.stripe\stripe-android\binding\Com.Stripe.StripeAndroid.csproj::TargetFramework=net8.0-android34.0]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.85\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144: invalid file path '~\dotnet-binding-utils\src\android\com.stripe\stripe-android\binding\obj\Release\net8.0-android34.0\lp\233.stamp'. [~\dotnet-bindin 
g-utils\src\android\com.stripe\stripe-android\binding\Com.Stripe.StripeAndroid.csproj::TargetFramework=net8.0-android34.0]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.85\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144:  [~\dotnet-binding-utils\src\android\com.stripe\stripe-android\binding\Com.Stripe.StripeAndroid.csproj::TargetFramework=net8.0-android34.0]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.85\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144: invalid file path '~\dotnet-binding-utils\src\android\com.stripe\stripe-android\binding\obj\Release\net8.0-android34.0\lp\235.stamp'. [~\dotnet-bindin 
g-utils\src\android\com.stripe\stripe-android\binding\Com.Stripe.StripeAndroid.csproj::TargetFramework=net8.0-android34.0]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.85\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144:  [~\dotnet-binding-utils\src\android\com.stripe\stripe-android\binding\Com.Stripe.StripeAndroid.csproj::TargetFramework=net8.0-android34.0]
@tuyen-vuduc tuyen-vuduc added the needs-triage Issues that need to be assigned. label May 4, 2024
@tuyen-vuduc
Copy link
Author

Here is the Binlog

You can check out the generated CSPROJ file(s) by opening binding.g.sln.

@jpobst jpobst added the Area: App+Library Build Issues when building Library projects or Application projects. label May 4, 2024
@jpobst jpobst removed their assignment May 17, 2024
@tuyen-vuduc
Copy link
Author

Facing the issue also with my other lib :( . Really annoying.

tuyen-vuduc/mapbox-maui#10

@dellis1972
Copy link
Contributor

I'm trying to repo this but the branch feat/com.stripe--stripe-android---20.40.4 does not exist?
So I used the 20.43.0 branch, and that fails with a Nuget error.

I need a reliable repo in order to investigate this further.

@dellis1972 dellis1972 added need-info Issues that need more information from the author. and removed needs-triage Issues that need to be assigned. labels May 28, 2024
@tuyen-vuduc
Copy link
Author

@dellis1972 Can you simply check out the Mapbox for Maui repo linked above. The same issue there.

@microsoft-github-policy-service microsoft-github-policy-service bot added need-attention A xamarin-android contributor needs to review and removed need-info Issues that need more information from the author. labels May 28, 2024
@tuyen-vuduc
Copy link
Author

This repo is easier as no special config is required. Plz try it out. https://github.com/tuyen-vuduc/dotnet-shakebugs-maui

@dellis1972
Copy link
Contributor

Still no joy. That repo fails with error XACDJ7028: System.IO.FileNotFoundException: Could not find file `.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.24/3f6b4bd4f8dbe8d4bea06d107a3826469b85c3e9/slf4j-api-1.7.24.jar`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: App+Library Build Issues when building Library projects or Application projects. need-attention A xamarin-android contributor needs to review
Projects
None yet
Development

No branches or pull requests

4 participants