compiler warnings...

Monkey Targets Forums/Android/compiler warnings...

pantson(Posted 2011) [#1]
Is this alright?
Getting every time I compile
Buildfile: D:\dev\blocks\blocks.build\android\build.xml
    [setup] Android SDK Tools Revision 11
    [setup] Project Target: Android 2.1-update1
    [setup] API level: 7
    [setup] 
    [setup] ------------------
    [setup] Resolving library dependencies:
    [setup] No library dependencies.
    [setup] 
    [setup] ------------------
    [setup] 
    [setup] WARNING: Attribute minSdkVersion in AndroidManifest.xml (3) is lower than the project target API level (7)
    [setup] 
    [setup] Importing rules file: tools\ant\main_rules.xml


    [javac] C:\android-sdk\tools\ant\main_rules.xml:384: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 2 source files to D:\dev\blocks\blocks.build\android\bin\classes
    [javac] Note: D:\dev\blocks\blocks.build\android\src\com\monkey\MonkeyGame.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.




dave.h(Posted 2011) [#2]
i get that as well but my programs still work


pantson(Posted 2011) [#3]
I changed the androidmanifest.xml file the following
	<uses-sdk
		android:minSdkVersion="7"
		android:targetSdkVersion="7" />


That solved the warnings.. not sure what it did though :-D


therevills(Posted 2011) [#4]
With that change you are saying only devices with Android 2.1 or higher can run your application and that you compiled the app using Android 2.1 (sdk 7).