Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-430] Android build error no identifier found for attribute "smallScreens"

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionNeeds more info
Resolution Date2011-04-21T10:40:35.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, buildproblem, klist
Reporterjasperdc
AssigneeAlan Leard
Created2011-04-15T02:29:10.000+0000
Updated2017-03-09T23:59:40.000+0000

Description

This is the error I keep getting when building for Android (I have tried every SDK version)

[ERROR] /Users/jasper/Development/Android/sdks/android-sdk-mac_86/platforms/android-1.5/tools/aapt /Users/jasper/Development/Repo-testprojects/Nieuwsbladsport_0.1/build/android/AndroidManifest.xml:9: ERROR No resource identifier found for attribute 'smallScreens' in package 'android'

For some reason the android-1.5/tools/aapt is called, but as far as I remembered the current release was supposed to use 1.6. Could this be the problem?

Thanks in advance,
Jasper

I'm using release 0.9.0 (but could not select this when adding this issue)

Comments

  1. Alan Leard 2011-04-20

    If you set:
           <manifest>
           	<supports-screens
       			android:smallscreens="true"
       		 	android:normalscreens="true"
       		  	android:largescreens="true"
       		   	android:anydensity="true">
          		</supports-screens>
       	</manifest>
       
    You will receive:
       [ERROR] /Users/alanleard/TiApps/KitchenSink/build/android/AndroidManifest.xml:3: error: No resource identifier found for attribute 'anydensity' in package 'android'
       [ERROR] /Users/alanleard/TiApps/KitchenSink/build/android/AndroidManifest.xml:3: error: No resource identifier found for attribute 'largescreens' in package 'android'
       [ERROR] /Users/alanleard/TiApps/KitchenSink/build/android/AndroidManifest.xml:3: error: No resource identifier found for attribute 'normalscreens' in package 'android'
       [ERROR] /Users/alanleard/TiApps/KitchenSink/build/android/AndroidManifest.xml:3: error: No resource identifier found for attribute 'smallscreens' in package 'android'
       [ERROR] Error generating R.java from manifest
       
    You can test with Kitchen Sink. Ticket Reference: http://appc.me/c/APP-512759
  2. Don Thorp 2011-04-21

    Please test again using the appropriate xml attributes. They are case sensitive.
       <android xmlns:android="http://schemas.android.com/apk/res/android">
           <manifest>
               <supports-screens 
                   android:smallScreens="false"
                   android:normalScreens="true"
                   android:largeScreens="true"
                   android:anyDensity="true"
               />
           </manifest>
       </android>
       
  3. Lee Morris 2017-03-09

    Closing this ticket as the request for more information has not been provided.

JSON Source