error <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing - android

I had update my eclipse Version: 4.2.2 and android SDK with API 23.
When i created an app then get an error like this.
[2015-10-12 17:03:05 - appcompat_v7] ERROR: In MenuView, unable to find attribute android:preserveIconSpacing
and warning
[2015-10-12 16:50:14 - appcompat_v7] WARNING: unable to write jarlist cache file D:\lolipop Workspace\appcompat_v7\bin\jarlist.cache
Syntax error, insert "}" to complete ClassBody R.java /appcompat_v7/gen/android/support/v7/appcompat line 3065 Java Problem
please help me to fix this problem.
Thanks.

check your appcompat\res\values\attrs.xml file
and find "android:preserveIconSpacing" in file
and freeze it.
and run app.
it's work for me.

Related

Proguard application's ClassLoader Error

Proguard in android application is throwing a Runtime error -
java.security.InvalidParameterException: Unable to locate the specified interface com.example.abc in the application's ClassLoader! A typo?
Could anyone please help to resolve the error.

importing project is throwing errors

I am getting source code from this directory link but it throwing this error. I already got many source codes from github or git but mostly not getting any error. but this time it is not solving by different tricks. any help will be appreciated
Error:Execution failed for task ':generateDebugProto'.
> protoc: stdout: . stderr: D:\2BVPRO'S\launcher3\launcher3\src\main\proto: warning: directory does not exist.
D:\2BVPRO'S\launcher3\launcher3\build\extracted-protos\main: warning: directory does not exist.
D:\2BVPRO'S\launcher3\launcher3\build\extracted-include-protos\main: warning: directory does not exist.
D:\2BVPRO'S\launcher3\launcher3\src\debug\proto: warning: directory does not exist.
D:\2BVPRO'S\launcher3\launcher3\build\extracted-protos\debug: warning: directory does not exist.
D:\2BVPRO'S\launcher3\launcher3\build\extracted-include-protos\debug: warning: directory does not exist.
D:\2BVPRO'S\launcher3\launcher3\src\debug\proto: warning: directory does not exist.
D:\2BVPRO'S\launcher3\launcher3\build\extracted-protos\debug: warning: directory does not exist.
D:\2BVPRO'S\launcher3\launcher3\build\extracted-include-protos\debug: warning: directory does not exist.
backup.proto:21:8: Option "javanano_use_deprecated_package" unknown.
I ran into the same problem. I tried creating the path but it was getting wiped when I tried to build.
I ended up grabbing the source from https://f-droid.org/wiki/page/com.android.launcher3 They also note an attempt to build failed due to protos which forced the removal of backup. The source can be downloaded directly from https://f-droid.org/repo/com.android.launcher3_1_src.tar.gz
In Launcher3/protos is a file called backup.proto. In the file:
package launcher_backup;
//option javanano_use_deprecated_package = true; >>> remark this line out.
option java_package = "com.android.launcher3.backup";
option java_outer_classname = "BackupProtos";
I was able to compile this. Apparently, this is no longer in later versions of protocol buffers. I have no idea the side effects but I was able to compile, install and use with no problems.
See https://github.com/google/protobuf/releases

android eclipse error creating google map

[2015-02-06 17:50:29 - Mmap] Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED [2015-02-06 17:50:29 - Mmap] Please check logcat output for more details. How I can solve those errors ?
Got same problem. Check your manifest file. Activity name should be prefixed with a period ".".

Error Message when Trying to Run the Sample Cocos-2DX Android Project on Eclipse

After following the directions on the Cocos-2DX site to get the android environment set up, I'm coming across this issue when trying the run the project as an Android application
[2013-12-03 22:12:10 - HelloCpp] Unable to resolve target 'android-13'
[2013-12-03 22:21:10 - HelloCpp] (skipping file '.gitignore' due to ANDROID_AAPT_IGNORE pattern '.*')
[2013-12-03 22:21:10 - HelloCpp] Unable to add 'D:\Cocos-2DX\cocos2d-x-2.2\samples\Cpp\HelloCpp\proj.android\assets\app.icf': Zip add failed
[2013-12-03 22:21:10 - HelloCpp] ERROR: unable to process assets while packaging 'D:\Cocos-2DX\cocos2d-x-2.2\samples\Cpp\HelloCpp\proj.android\bin\resources.ap_'
[2013-12-03 22:21:10 - HelloCpp] ERROR: packaging of 'D:\Cocos-2DX\cocos2d-x-2.2\samples\Cpp\HelloCpp\proj.android\bin\resources.ap_' failed
All my path and environment variables have been set up, so I'm not sure what could be causing the issue. Any assistance is greatly appreciated
Try this :
Right click project --> go to properties --> select Android from there --> and from the list of target name select Android 3.2 or lesser
Error means that you do not have api level 13 installed in your sdk manager. So you can download api 13 using android sdk manager.
Also check this : SO Post for this
Hope this helps.

Errors when compiling Android RenderScript samples

I get the following errors when I try to compile any Android RenderScript sample code (SDK version 11).
[2012-02-03 16:49:33 - CarouselExample] /Library/android-sdk-macosx/platforms/android-13/renderscript/include/rs_core.rsh:35:33: error: unknown type name 'rs_matrix4x4'
[2012-02-03 16:49:33 - CarouselExample] /Library/android-sdk-macosx/platforms/android-13/renderscript/include/rs_core.rsh:40:33: error: unknown type name 'rs_matrix3x3'
[2012-02-03 16:49:33 - CarouselExample] /Library/android-sdk-macosx/platforms/android-13/renderscript/include/rs_core.rsh:45:33: error: unknown type name 'rs_matrix2x2'
[2012-02-03 16:49:33 - CarouselExample] /Library/android-sdk-macosx/platforms/android-13/renderscript/include/rs_core.rsh:55:27: warning: declaration specifier missing, defaulting to 'int'
[2012-02-03 16:49:33 - CarouselExample] /Library/android-sdk-macosx/platforms/android-13/renderscript/include/rs_core.rsh:88:71: error: unknown type name 'float2'; did you mean 'float'?
...
I've searched around to see if others are having similar issues.
This post Renderscript samples build errors for example mentions that the /renderscript directory in Android-11 to Android-13 needs to be updated with the contents of the /renderscript directory from Android-14+. I have all the SDK versions from 2.1 to 4.0.3 and there's no:
/platforms/android-14/renderscript
directory. I am able to build and run my projects that don't use RenderScript.
Has anyone found a solution for this? Or can someone tell me what I'm doing incorrectly here? I just select File>New>Android Project>Create project from existing sample. If I select any RenderScript samples I'm unable to compile the project.
I've also noticed that the /raw directory (sibling directories of layout, drawable, etc.) initially comes with a file (in my case carousel.bc), but when I compile, this file is deleted - which doesn't seem right to me.
Thanks for you help!
So after some more digging around. I decided to install the Google APIs for the Android-11 SDK and that seemed to fix things. There was still one syntax error I had to fix in the carousel.rs file.
cards[i].cardVisible = (p >= visibleFirst && p < visibleLast)
|| (p <= visibleFirst && p > visibleLast);
The last two parentheses need to be added.
Wish I would have been able to find this out from the Android developer site. Nowhere does it say the "Google API's by Google" need to be downloaded in order to compile RenderScript.

Categories

Resources