I need to set the Android attribute
android:usesCleartextTraffic="true"
in an Eclipse Android project, but when I do so, it gives me the error:
No resource identifier found for attribute 'usesCleartextTraffic' in package 'android'
Any ideas on how to fix this problem?
Thanks.
I believe I found the problem. I needed to target a more recent SDK. Unfortunately doing so create a whole host of other problems which I will have to sort through, but they are unrelated to this question.
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.
Ia m building react native app thats compatible with both ios and android platforms. But when I am trying to Build signed APK on Android Studio for Android platform then I am getting No resource found error in AndroidManifest file even though these files exist - anyone any idea ?
build.gradle
I think this must be a simple typo - you misspelled mipmap (you typed mitmap instead) - change the line from android:icon="#mitmap/ic_launcher into android:icon="#mipmap/ic_launcher. Hopefully the other error also disappears after fixing this? Please give it a try and let me know.
Try to run a clean after correcting the typos
While importing project from Eclipse to Android Studio it has reported following error:
What may cause the problem? Any idea how to deal with this?
Regards
What may cause the problem?
Apparently, you have that <uses-permission> element in a manifest that would be used for a production app, and they now have a Lint rule to block that.
Any idea how to deal with this?
Create a src/debug/AndroidManifest.xml file, with a root <manifest> element holding onto your <uses-permission> element, and remove that <uses-permission> element from where you are getting the error (presumably src/main/AndroidManifest.xml).
This lint error currently does limit use of the permission to debug specific manifests in AndroidStudio 1.0.+ but the lint guidelines are being adjusted to allow the permission to also work in test specific manifests in an up coming version of AndroidStudio.
I'm using Xamarin to build an android application but I'm having this error every time I try to compile the application.
I've added my attrs.xml file to Resources/values, referenced my namespace like this:
xmlns:custom="http://schemas.android.com/apk/res/mynamespace" and added the property to the view.
What am I missing? I've seen several examples but all seem to be working ok.
The reference is all in lower letters to avoid errors. I've also tried removing the http://... part and changing the folder "res" for "lib". These changes make the app to compile but I'm unable then to get the value of the parameter.
Please, any help will be really appreciated.
Best regards.
I've found the answer to my problem. It seems that it's not necessary to keep the lower letters when referencing the package name so if your package name is "MyNamespace", instead of using:
xmlns:custom="http://schemas.android.com/apk/res/mynamespace
you have to use:
xmlns:custom="http://schemas.android.com/apk/res/MyNamespace
It works now!
I am getting an error message regarding a styles.xml on my Eclipse for MAC OS X. Below is the error message:
error: Error retrieving parent for item: No resource found that matches the given name 'android:WindowTitleBackground'.
I googled this issue and found out that I will require an SDK r11 update to solve this problem. But since the latest SDK is r12, I downloaded using my Eclipse. But I still see this problem.
I am new to Android, so I do not really know how to troubleshoot this problem. I am hoping you guys can help me. Do let me know if I need to provide more information. Thanks in advance.
Here is a bug report where everything is explained: http://code.google.com/p/android/issues/detail?id=18659
WindowTitleBackground is a private resource and thus you cannot inherit from it, instead you should copy the parent resource.
Try this: #android:style/WindowTitleBackground
You need to specify which type this #android is, so adding style should work.