Error when compiling a Cocos2d-x project on Android platform - android

Description Resource Path Location Type
The declared package "org.cocos2dx.lib" does not match the expected package "src.org.cocos2dx.lib" Cocos2dxMusic.java /java/src/org/cocos2dx/lib line 24 Java Problem
Someone said that cocos2d-x 2.0.3 has a bug that will not create cocos2dx.lib.
Anybody know how to solve this?

Related

Trying to upload a Unity/Vuforia project to S7(Oreo 8.0)

I've downloaded everything Unity asked me for: Java Development Kit(JDK) and then Android Studio. I set file paths and configured Vuforia as well as the tutorial videos explained. I'm still getting 10 errors:
Assets/Vuforia/Scripts/DefaultInitializationErrorHandler.cs(101,23):
error CS0246: The type or namespace name `VuforiaUnity' could not be found.
Are you missing an assembly reference?
and
Assets/Vuforia/Scripts/DefaultTrackableEventHandler.cs(22,15):
error CS0246: The type or namespace name `TrackableBehaviour' could not be found.
Are you missing an assembly reference?
there are others, but they are similar. Please give me any tips you have or ask any other questions on things I may have missed.

Run projects from androidviews

I am trying to run the sample project from customviews but facing some problems. i am not able to run any project from the site. Each time getting different type of error. I also searched in the net for the solution but failed to figure out the solution. May be i am facing a general problem for all projects and if i solve one i may be able to solve the others.
In ActionbarPullRequest library i am getting :
Description Resource Path Location Type SmoothProgressBar cannot be resolved to a type DefaultHeaderTransformer.java /library_ActionbarPulltoRefresh/src/uk/co/senab/actionbarpulltorefresh/library line
57 Java Problem
In StackBlurDemo i am getting this error :
Description Resource Path Location Type toggleButtonMode cannot be resolved or is not a field MainActivity.java /StackBlurDemo/src/com/example/stackblurdemo line 30 Java Problem

Apportable - 'AssetsLibrary/AssetsLibrary.h' file not found

I have an iOS Objective C code for iPhone that I am trying to convert into android using Apportable. The issue is that I am getting this error:
1 error generated.
scons: *** [Build/android-armeabi-debug/com.iapptechnologies.time/Users/Home/PhotoTastic/PhotoTastic/AppClasses/ViewController.m.o] Error 1
In file included from /Users/Home/PhotoTastic/PhotoTastic/OtherClasses/QBImagePickerController/QBAssetCollectionViewController.m:11:
/Users/Home/PhotoTastic/PhotoTastic/OtherClasses/QBImagePickerController/QBAssetCollectionViewController.h:12:9: fatal error:
'AssetsLibrary/AssetsLibrary.h' file not found
#import <AssetsLibrary/AssetsLibrary.h>
^
Any help would be much appreciated. Thanks!
It's strange that AssetsLibrary is not added automatically from parsing the xcode build.
A workaround is to add AssetsLibrary to the "deps" section of "add_params" in configuration.json
Note that AssetsLibrary is not available in the Starter version of the SDK. At least the Indie version is needed.
I think this will do,In xcode 5 it looks different but the path is the same

Could not find com.slidingmenu.lib.SlidingMenuActivity.apk

I am trying to make use of the SlidingMenu Library for Android but I get these errors:
Could not find com.slidingmenu.lib.SlidingMenuActivity.apk
and another error:
E/AndroidRuntime(24767): java.lang.NoClassDefFoundError: com.slidingmenu.lib.SlidingMenu
I have properly added the com.slidingmenu.lib.SlidingMenuActivity to the Java Build section.
What I found is that some time between June 2012 and now (August 2013) the package name changed. Performing a global search-and-replace of com.slidingmenu.lib to com.jeremyfeinstein.slidingmenu.lib fixed the problem.
Troubleshoot Android 'Could not find somelibrary.apk'
Could not find Library.apk!
Troubleshoot Android 'java.lang.NoClassDefFoundError com.somelibrary.mylibrary'
Troubleshoot NoClassDefFoundError in Java

No resource identifier found for attribute 'filterTouchesWhenObscured' in package android

I'm using cmd prompt to build a andorid app however I keep getting this BuildFail when I call
ant release or ant debug
https://www.dropbox.com/s/99dit8ctiq3bv4w/error.png
It says:
No resource identifier found for attribute 'filterTouchesWhenObscured' in package android
followed by:
D:\Program Files\Android\android-sdk\tools\ant\build.xml: null returned: 1
Anyone know why this might be happening? I'm thinking maybe I didn't run my android update lib-project command correctly.
Any help will be greatly appreciated.
filterTouchesWhenObscured is available since API level 9. The error indicates that you are using some prior API.

Categories

Resources