Forum Xamarin.Android

APT2260 Error on style/MainTheme.Base

I have the latest Visual Studio 2019 for Mac. I created a brand new app that is a Xamarin Forms cross platform mobile app.

I can build the iOS fine.

When I try to build the Android I get the following error:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Aapt2.targets(3,3): Error APT2260: resource style/MainTheme.Base (aka com.xxxxxxxx.test.test:style/MainTheme.Base) not found. (APT2260) (Test.Android)

This was happening in my main app that I have been working on in iOS for a few days, so I decided to create a brand new project without any modifications and get the same error.

I am able to recreate the error by starting a new project and selecting the Multiplaform -> App -> Tabbed Forms App.

I chose all of the default values and get the error above.

Below is the version information from VS2019:

=== Visual Studio Community 2019 for Mac ===

Version 8.7.2 (build 4)
Installation UUID: ada5e66f-6036-4062-a5f0-effe51f15191
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)

Package version: 612000090

=== Mono Framework MDK ===

Runtime:
Mono 6.12.0.90 (2020-02/d3daacdaa80) (64-bit)
Package version: 612000090

=== Roslyn (Language Service) ===

3.7.0-6.20371.12+917b9dfae12e3b6cb266a3c062fb20a1e9d5fb06

=== NuGet ===

Version: 5.7.0.6702

=== .NET Core SDK ===

SDK: /usr/local/share/dotnet/sdk/3.1.401/Sdks
SDK Versions:
3.1.401
3.1.302
3.1.301
3.1.300
3.1.202
3.1.200
3.1.102
3.1.101
3.1.100
3.0.101
3.0.100
2.2.401
2.1.701
2.1.700
2.1.505
2.1.504
2.1.403
2.1.302
2.1.301
2.1.4
2.0.0
1.0.0-preview2-1-003177
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/Sdks

=== .NET Core Runtime ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
3.1.7
3.1.6
3.1.5
3.1.4
3.1.2
3.1.1
3.1.0
3.0.1
3.0.0
2.2.6
2.1.21
2.1.20
2.1.19
2.1.18
2.1.17
2.1.16
2.1.15
2.1.14
2.1.13
2.1.12
2.1.11
2.1.9
2.1.8
2.1.5
2.1.2
2.1.1
2.0.5
2.0.0
1.1.0

=== Xamarin.Profiler ===

Version: 1.6.12.26
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Version: 11

=== Apple Developer Tools ===

Xcode 11.6 (16141)
Build 11E708

=== Xamarin.Mac ===

Version: 6.20.2.2 (Visual Studio Community)
Hash: 817b6f72a
Branch: d16-7
Build date: 2020-07-18 18:44:59-0400

=== Xamarin.iOS ===

Version: 13.20.2.2 (Visual Studio Community)
Hash: 817b6f72a
Branch: d16-7
Build date: 2020-07-18 18:45:00-0400

=== Xamarin Designer ===

Version: 16.7.0.492
Hash: f5afe667d
Branch: remotes/origin/d16-7-vsmac
Build date: 2020-07-10 18:42:54 UTC

=== Xamarin.Android ===

Version: 11.0.0.3 (Visual Studio Community)
Commit: xamarin-android/d16-7/aca845b
Android SDK: /Users/tpitman/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
5.0 (API level 21)
6.0 (API level 23)
7.1 (API level 25)
8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 30.0.3
SDK Build Tools Version: 29.0.2

Build Information:
Mono: 83105ba
Java.Interop: xamarin/java.interop/[email protected]
ProGuard: Guardsquare/proguard/[email protected]
SQLite: xamarin/sqlite/[email protected]
Xamarin.Android Tools: xamarin/xamarin-android-tools/[email protected]

=== Microsoft OpenJDK for Mobile ===

Java SDK: /Users/tpitman/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android SDK Manager ===

Version: 16.7.0.13
Hash: 8380518
Branch: remotes/origin/dev/jmt/d16-7readconfig~2
Build date: 2020-07-23 22:38:02 UTC

=== Android Device Manager ===

Version: 16.7.0.18
Hash: 4b44bc1
Branch: remotes/origin/d16-7
Build date: 2020-07-23 22:38:26 UTC

=== Build Information ===

Release ID: 807020004
Git revision: 6b86e771c92aa2615d2c2a09919bb3d4ccb69a5a
Build date: 2020-08-12 07:16:26-04
Build branch: release-8.7
Xamarin extensions: 6b86e771c92aa2615d2c2a09919bb3d4ccb69a5a

=== Operating System ===

Mac OS X 10.15.6
Darwin 19.6.0 Darwin Kernel Version 19.6.0
Thu Jun 18 20:49:00 PDT 2020
root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64

=== Enabled user installed extensions ===

Meadow 0.7.0

Tagged:

Best Answer

Answers

  • TonyPitmanTonyPitman USMember ✭✭

    As soon as I opened the Android SDK it told me that my installation needed to be repaired. I did that and now it builds fine.

    Now I have another issue. When I try to deploy to my Pixel 2 it gets stuck on:

    Synchronizing assemblies
    20% ... 3002kb of 14934kb copied
    30% ... 4538kb of 14934kb copied
    40% ... 5994kb of 14934kb copied
    50% ... 7475kb of 14934kb copied
    60% ... 8976kb of 14934kb copied
    70% ... 10512kb of 14934kb copied
    20% ... 3002kb of 14934kb copied
    30% ... 4538kb of 14934kb copied
    40% ... 5994kb of 14934kb copied
    50% ... 7475kb of 14934kb copied
    60% ... 8976kb of 14934kb copied
    70% ... 10512kb of 14934kb copied
    80% ... 11972kb of 14934kb copied
    90% ... 13499kb of 14934kb copied
    80% ... 11972kb of 14934kb copied
    90% ... 13499kb of 14934kb copied

    It just sits there forever. I have tried rebooting my Mac and the Pixel 2 several times. I have also tried cleaning and rebuilding the project.

Sign In or Register to comment.