[Monodroid] New build error, unable to build
Chris Erickson
chris at cartopac.com
Wed Mar 2 16:56:05 EST 2011
That was it, although I think the syntax should be legal. Here it is:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:binding="http://schemas.android.com/apk/res/com.cartopac.android.bind
ing"
>
<TextView
android:id="@+id/textDisplay"
android:layout_width="fill_parent"
android:layout_height="40px"
android:background="#ffffff"
android:text="TextView"
android:padding="5dip"
binding:text="TextDisplayBinding"
>
</TextView>
Note the binding namespace addition.
Ideas on what could be causing this?
On 3/2/11 2:47 PM, "Paul Camacho" <paul.camacho at gmx.de> wrote:
>Did you modify any XML files in the resource/layout folder since your
>last successful build? If so, go back and double check the syntax.
>
>
>
>Am 02.03.2011 um 22:41 schrieb Chris Erickson <chris at cartopac.com>:
>
>> Hello,
>> I'm unable to build again, with an unhelpful error. Can anybody add
>>any insight?
>>
>>
>>
>> Building: MultiTargetSampleMonoDroid (Debug)
>>
>> Building Solution MultiTargetSampleMonoDroid
>>
>> Building: MultiTargetSampleMonoDroid (Debug)
>>
>> Performing main compilation...
>>
>> Build started 3/2/2011 2:35:54 PM.
>> __________________________________________________
>> Project
>>"/Users/chriserickson/Projects/MultiTargetSampleIOS/MultiTargetSampleMono
>>Droid/MultiTargetSampleMonoDroid.csproj" (Build target(s)):
>>
>> Target _GenerateAndroidAssetsDir:
>> No output files were specified for target
>>_GenerateAndroidAssetsDir, skipping.
>>
>> Target _GenerateAndroidResourceDir:
>> Skipping target "_GenerateAndroidResourceDir" because its outputs
>>are up-to-date.
>>
>> Target _ResolveMonoDroidSdks:
>> MonoDroid Tools: /Developer/MonoDroid/usr/lib/monodroid/
>> MonoDroid Framework:
>>/Developer/MonoDroid/usr/lib/monodroid/platforms/android-8;/Developer/Mon
>>oDroid/usr/lib/mono/2.1
>> Android SDK: /Users/chriserickson/SDK/android-sdk-mac_86/
>> Java SDK: /usr/
>>
>> Target _ValidateAndroidPackageProperties:
>> GetAndroidPackageName Task
>> ManifestFile:
>> AssemblyName: MultiTargetSampleMonoDroid
>> PackageName:
>>MultiTargetSampleMonoDroid.MultiTargetSampleMonoDroid
>>
>> Target _UpdateAndroidResgen:
>> AndroidResgen Task
>> ResourceDirectory:
>>/Users/chriserickson/Projects/MultiTargetSampleIOS/MultiTargetSampleMonoD
>>roid/obj/Debug/res/
>> ResgenOutputFile: Resources/Resource.designer.cs
>> Namespace: MultiTargetSampleMonoDroid
>> Class: Resource
>> JavaSdkDirectory: /usr/
>> AndroidSdkDirectory:
>>/Users/chriserickson/SDK/android-sdk-mac_86/
>> AndroidSdkPlatform: 8
>> MonoDroidToolsDirectory:
>>/Developer/MonoDroid/usr/lib/monodroid/
>> ExtraArgs:
>> Tool /Developer/MonoDroid/usr/lib/monodroid/aresgen.exe
>>execution started with arguments: -o="Resources/Resource.designer.cs"
>>--package="MultiTargetSampleMonoDroid.MultiTargetSampleMonoDroid"
>>--sdk-dir="/Users/chriserickson/SDK/android-sdk-mac_86/"
>>--java-sdk-dir="/usr/" --sdk-platform="8"
>>--namespace="MultiTargetSampleMonoDroid" --type="Resource"
>>--resource:layout/main.axml,Layout/Main.axml
>>--resource:values/strings.xml,Values/Strings.xml
>>--resource:drawable-hdpi/icon.png,Drawable-hdpi/Icon.png
>>--resource:drawable-mdpi/icon.png,Drawable-mdpi/Icon.png
>>--resource:drawable-ldpi/icon.png,Drawable-ldpi/Icon.png
>>--resource:values/attrs.xml,Values/attrs.xml -v -S
>>"/Users/chriserickson/Projects/MultiTargetSampleIOS/MultiTargetSampleMono
>>Droid/obj/Debug/res/"
>> Creating directory:
>>/var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td
>> Running command:
>>/Users/chriserickson/SDK/android-sdk-mac_86/platform-tools/aapt
>>"package" "-M"
>>"/var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td/AndroidMa
>>nifest.xml" "-J"
>>"/var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td" "-F"
>>"/var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td/resources
>>.apk" "-S"
>>"/Users/chriserickson/Projects/MultiTargetSampleIOS/MultiTargetSampleMono
>>Droid/obj/Debug/res/" "-I"
>>"/Users/chriserickson/SDK/android-sdk-mac_86/platforms/android-8/android.
>>jar"
>> Removing directory:
>>/var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td
>> MonoDroid.Utils.CommandFailedException: Operation is not valid
>>due to the current state of the object
>> at
>>MonoDroid.Utils.ProcessRocks+<ReadStandardOutput>c__Iterator1.MoveNext
>>() [0x00000] in <filename unknown>:0
>> at MonoDroid.Tools.Aresgen.Package.CreatePackage
>>(System.String aapt, MonoDroid.Tools.Aresgen.Context context,
>>System.String dir) [0x00000] in <filename unknown>:0
>> at MonoDroid.Tools.Aresgen.Package.GetResources
>>(MonoDroid.Tools.Aresgen.Context context) [0x00000] in <filename
>>unknown>:0
>> at MonoDroid.Tools.Aresgen.App.Main (System.String[] args)
>>[0x00000] in <filename unknown>:0
>>
>>/Users/chriserickson/Projects/MultiTargetSampleIOS/MultiTargetSampleMonoD
>>roid/obj/Debug/res/layout/main.axml:9: error: No resource identifier
>>found for attribute 'text' in package 'com.cartopac.android.binding'
>>
>>
>>/Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroi
>>d.Common.targets: error : Tool exited with code: 1. Output: Creating
>>directory: /var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td
>> Running command:
>>/Users/chriserickson/SDK/android-sdk-mac_86/platform-tools/aapt
>>"package" "-M"
>>"/var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td/AndroidMa
>>nifest.xml" "-J"
>>"/var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td" "-F"
>>"/var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td/resources
>>.apk" "-S"
>>"/Users/chriserickson/Projects/MultiTargetSampleIOS/MultiTargetSampleMono
>>Droid/obj/Debug/res/" "-I"
>>"/Users/chriserickson/SDK/android-sdk-mac_86/platforms/android-8/android.
>>jar"
>> Removing directory:
>>/var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td
>> MonoDroid.Utils.CommandFailedException: Operation is not valid due to
>>the current state of the object
>> at
>>MonoDroid.Utils.ProcessRocks+<ReadStandardOutput>c__Iterator1.MoveNext
>>() [0x00000] in <filename unknown>:0
>> at MonoDroid.Tools.Aresgen.Package.CreatePackage (System.String aapt,
>>MonoDroid.Tools.Aresgen.Context context, System.String dir) [0x00000] in
>><filename unknown>:0
>> at MonoDroid.Tools.Aresgen.Package.GetResources
>>(MonoDroid.Tools.Aresgen.Context context) [0x00000] in <filename
>>unknown>:0
>> at MonoDroid.Tools.Aresgen.App.Main (System.String[] args) [0x00000]
>>in <filename unknown>:0
>>
>>/Users/chriserickson/Projects/MultiTargetSampleIOS/MultiTargetSampleMonoD
>>roid/obj/Debug/res/layout/main.axml:9: error: No resource identifier
>>found for attribute 'text' in package 'com.cartopac.android.binding'
>>
>>
>> Task "AndroidResgen" execution -- FAILED
>> Done building target "_UpdateAndroidResgen" in project
>>"/Users/chriserickson/Projects/MultiTargetSampleIOS/MultiTargetSampleMono
>>Droid/MultiTargetSampleMonoDroid.csproj".-- FAILED
>>
>> Done building project
>>"/Users/chriserickson/Projects/MultiTargetSampleIOS/MultiTargetSampleMono
>>Droid/MultiTargetSampleMonoDroid.csproj".-- FAILED
>>
>> Build FAILED.
>> Errors:
>>
>>
>>/Users/chriserickson/Projects/MultiTargetSampleIOS/MultiTargetSampleMonoD
>>roid/MultiTargetSampleMonoDroid.csproj (Build) ->
>>
>>/Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroi
>>d.Common.targets (_UpdateAndroidResgen target) ->
>>
>>
>>/Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroi
>>d.Common.targets: error : Tool exited with code: 1. Output: Creating
>>directory: /var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td
>> Running command:
>>/Users/chriserickson/SDK/android-sdk-mac_86/platform-tools/aapt
>>"package" "-M"
>>"/var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td/AndroidMa
>>nifest.xml" "-J"
>>"/var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td" "-F"
>>"/var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td/resources
>>.apk" "-S"
>>"/Users/chriserickson/Projects/MultiTargetSampleIOS/MultiTargetSampleMono
>>Droid/obj/Debug/res/" "-I"
>>"/Users/chriserickson/SDK/android-sdk-mac_86/platforms/android-8/android.
>>jar"
>> Removing directory:
>>/var/folders/os/oso5V4dMGw4ep-aPUQ1GXE+++TI/-Tmp-/7nzwdmh2.3td
>> MonoDroid.Utils.CommandFailedException: Operation is not valid due to
>>the current state of the object
>> at
>>MonoDroid.Utils.ProcessRocks+<ReadStandardOutput>c__Iterator1.MoveNext
>>() [0x00000] in <filename unknown>:0
>> at MonoDroid.Tools.Aresgen.Package.CreatePackage (System.String aapt,
>>MonoDroid.Tools.Aresgen.Context context, System.String dir) [0x00000] in
>><filename unknown>:0
>> at MonoDroid.Tools.Aresgen.Package.GetResources
>>(MonoDroid.Tools.Aresgen.Context context) [0x00000] in <filename
>>unknown>:0
>> at MonoDroid.Tools.Aresgen.App.Main (System.String[] args) [0x00000]
>>in <filename unknown>:0
>>
>>/Users/chriserickson/Projects/MultiTargetSampleIOS/MultiTargetSampleMonoD
>>roid/obj/Debug/res/layout/main.axml:9: error: No resource identifier
>>found for attribute 'text' in package 'com.cartopac.android.binding'
>>
>>
>>
>> 0 Warning(s)
>> 1 Error(s)
>>
>> Time Elapsed 00:00:00.4250190
>> Build complete -- 1 error, 0 warnings
>>
>> ---------------------- Done ----------------------
>>
>> Build: 1 error, 0 warnings
>>
>> _______________________________________________
>> Monodroid mailing list
>> Monodroid at lists.ximian.com
>>
>> UNSUBSCRIBE INFORMATION:
>> http://lists.ximian.com/mailman/listinfo/monodroid
>_______________________________________________
>Monodroid mailing list
>Monodroid at lists.ximian.com
>
>UNSUBSCRIBE INFORMATION:
>http://lists.ximian.com/mailman/listinfo/monodroid
More information about the Monodroid
mailing list