When I build app in the Eclipse, all is ok, but when I try to build with the apache ant, I have got some errors:
[aapt] ...\AndroidManifest.xml:10: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
[aapt] ...\AndroidManifest.xml:23: error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale').
I use the "uses-sdk" with minSDKVersion=7 (I need to run app on the Android 2.1 devices). When I remove "uiMode|screenSize|smallestScreenSize" values" from "configChanges" and remove "hardwareAccelerated", then ANT properly complete it's job, but AdMob do not work properly.
I know, that "uiMode|screenSize|smallestScreenSize" values first introduced in SDK API level 13, but when I use Eclipse to build app, all working good on Android 2.1.
I don't know what I should do ;(
Try setting the targetSDKVersion to 13?
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="13"/>
Related
error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
This error happens when eclipse android project build is running.
I'm using
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="8"> right now,
am I using a wrong sdk version?
Also can I find these kind of android attribute working according to sdk version?
These two attributes, 'hardwareAccelerated' and 'largeHeap' attribute supports above Android 3.0( API 11 ),
and I'm using .
I've cleaned my project, but the project still shows the same error.
Still keep looking for the real answer.
I am receiving the following error when compiling an Android project using SDK 4.1.2:
/res/values-v14/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '#android:Theme.Holo.Light'.
The values-v14 resource directory is the only place this theme is referenced.
The uses-sdk in my manifest is <uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="16"/> and the project SDK is set to build with Android 4.1.2 with the Google APIs.
Can anyone give me some idea of what might be occurring?
I am using the latest version of Intellij IDEA.
Since this was a project imported from Eclipse, I had to go back and change the SDK built against to 4.1.2 in Eclipse, and then IDEA decided to play nice.
I developed something with Phonegap for iOS, but this is my first trial for Android.
I created my hello world application with CLI sth like this mentioned here:
$ /path/to/cordova-android/bin/create /path/to/my_new_cordova_project com.example.cordova_project_name CordovaProjectName
Even though I created this app in Eclipse Workspace, I needed to import it to Eclipse. I created two AVDs. One for API level 8, one for API level 16.
When I try to build, it gives me these three errors and a warning. What is wrong with my setup?
Description Resource Path Location Type
error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android' AndroidManifest.xml /com.example.test.testprojectname line 20 Android AAPT Problem
error: No resource identifier found for attribute 'xlargeScreens' in package 'android' AndroidManifest.xml /com.example.test.testprojectname line 22 Android AAPT Problem
error: Error: String types not allowed (at 'configChanges' with value 'orientation|keyboardHidden|keyboard|screenSize|locale'). AndroidManifest.xml /com.example.test.testprojectname line 51 Android AAPT Problem
The import android.app.Activity is never used testprojectname.java /com.example.test.testprojectname/src/com/example/test line 22 Java Problem
Go to Project -> Properties -> Android and select a newer SDK (preferably the latest one), after that run Project -> Clean. That worked for me.
Check the minSdkVersion and targetSdkVersion attributes in your AndroidManifest.xml. It sounds like you're building the app for an older SDK version that didn't have the attributes that are producing the errors. Try to set both min and target to 11 and see what happens.
You should always be building for the latest SDK. It looks like your Eclipse setup is using an old version of Android (Android 2.2?). hardwareAccelerated and xlargeScreens is from Android 3.x. I recommend making sure your project uses the latest version fo the SDK in Eclipse. This has nothing to do with your Android Manifest, and is actually an eclipse setting.
By default android version is 2.1; you must right click on root folder of you project, select properties, then in android select new version; try to reload it and it wrok...
You should always be building for the latest SDK. It looks like your Eclipse setup is using an old version of Android (Android 2.2?). hardwareAccelerated and xlargeScreens is from Android 4.x. I recommend making sure your project uses the latest version of the SDK in Eclipse.
(or)
after creating your project Do the following steps
Right click your project -> properties --> change the Android target version as 4.x
Eclipse is giving me an error on the android:configChanges line in my AndroidManifest.xml:
"< activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize">"
the error is:
error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize').
If I leave only keyboard|keyboardHidden|orientation there's no error, but compiler asks for the 4 remaining ones when I try and build. But there is no ads displayed.
I'm using GoogleAdMobAdsSDK-4.3.1.
If i set project.properties target-13.my android 2.3 device does not run the app..But my device run so many app that having ads are displayed..
Please Help me..!!!
you need do this:
The Google AdMob Ads SDK for Android requires Android 1.5 or later. Make sure you have the latest copy of the Android SDK and that you're compiling against at least Android v3.2 (set target in default.properties to android-13).
Check out this blog post. You need to set android-13 for 4.3.1 to compile, but you can use
<uses-sdk android:minSdkVersion="9"/>
or any version down to 3, and your app will then run on your 2.3 device.
I'm developing an Android application that I'd like to be compatible with 1.5 (SDK version 4). I'm testing the application on 2.2 (SDK version 8). To do this, I'm including in the manifest file the line
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="8" />
I thought this would allow me to use the newest manifest elements and APIs, but I'm getting a compile error whenever I try to use them. For example, I try to define the element installLocation to allow the app to be installed on the SD card, but Eclipse gives me the error
No resource identifier found for attribute 'installLocation' in package 'android'
Is there something else I have to do to get this to work? If I can't get this to work, what benefit is defining targetSdkVersion?
Make sure that you are using building against the android 2.2 jars. Right click on your Eclipse project, choose, properties, go down to Android and make sure the correct sdk is selected.
Change the build target by editing the project properties in Eclipse, and choose a target with at least API Level 8: ("I'm testing the application on 2.2 (SDK version 8)").