I've been trying to install the C2dm module for titanium studio found here: https://github.com/Kuraturpa/titanium-c2dm
I keep having issues. When I set it up as outlined here: http://developer.appcelerator.com/question/38451/c2dm-in-titanium
I keep getting an error that it can't find the module (at runtime). The error reads:
Location: [357, 0] /tmp/module.js Message: Error: Requested module not
found: com.findlaw.titanium.cd2m (/tmp/module.js#357)
I indeed can't find this file anywhere in my stuff, because I don't have a tmp folder in my project. I originally put the xml code from that above forum post in the timodule.xml file and it got me to this runtime error. When I switch it to the tiapp.xml file I get this error:
[ERROR] The 'apiversion' for 'com.findlaw.titanium.c2dm' in the module
manifest is not a valid value. Please use a version of the module that
has an 'apiversion' value of 2 or greater set in it's manifest file
When I try to manually build the module myself using ant, I get:
BUILD FAILED /Users/sammy/Downloads/IGx89-titanium-c2dm-3b05b8a
2/build.xml:9: Cannot find /Library/Application
Support/Titanium/mobilesdk/osx/1.8.0.1/module/android/build.xml
imported from /Users/sammy/Downloads/IGx89-titanium-c2dm-3b05b8a
2/build.xml
I checked, and the build.xml file is in the folder shown in the error. I'm kind of at a loss as to what to do here...
That module does not support the version of Titanium Mobile you are using (1.8.0.1 or higher). You must either update it yourself, or find another C2DM module.
The guide for porting to 1.8.0.1 is available here:
http://docs.appcelerator.com/titanium/2.0/index.html#!/guide/Android_Module_Porting_Guide_for_1.8.0.1
Related
I found the incomplete type of native_bridge_namespace_t here in android open source project, but where is the definition of native_bridge_namespace_t? I have searched the whole aosp project but failed to found the definition, Did I misunderstand something?
I have downloaded the Osmdroid project from Github, from here https://github.com/osmdroid/osmdroid
When I open the osmdroid-master directory in Android Studio it attempts to sync but fails with the following error: Gradle Project sync failed.
Cause: startup failed:
script 'https://raw.githubusercontent.com/gradle-fury/gradle-fury/v1.1.4/gradle/maven-support.gradle': 1453: unable to resolve class org.gradle.api.internal.ClosureBackedAction
# line 1453, column 13.
new org.gradle.api.internal.ClosureBackedAction({
^
1 error
In idea.log there is:
2020-01-31 14:10:04,272 [entQueue-0] WARN - un.AndroidRunConfigurationBase - Can't get application ID: Android module missing
2020-01-31 14:10:04,402 [Alarm Pool] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 34 ms
I am on Ubuntu 19.04.
How can I see which Android module it's referring to as missing?
The original question was based on a misunderstand on my behalf. The Osmdroid from Github cannot be compiled into an APK.
The correct approach is to create a new empty project in Android Studio, add org.osmdroid:osmdroid-android:6.1.5 to the dependencies in build.grade, then following the examples given here: https://github.com/osmdroid/osmdroid/wiki/How-to-use-the-osmdroid-library add uses-permission, layout and then the actual code to the Main Activity. I now have a working mapping app which downloads tiles as it needs them. If I have further questions I will post separately.
Thanks to everybody who contributed.
I do one template project from "kinetise"(framework) and downloaded the android source code,
but not able to run this source code in android studio for editing.the downloaded source code was combining of javascript files also.
https://www.kinetise.com/user/dashboard
In kinetise while build code for Android and iOS both it will provide a template in which there are too much irrelevant code you have to search your required file by your own and done changes accordingly.
You must have to share your error here.
Most common error:
Error:Project :Kinetise declares a dependency from configuration 'compile' to configuration 'default' which is not declared in the descriptor for project :facebook-android-sdk.
hope someone knows better.
Since hours I try to include the cardslib - https://github.com/gabrielemariotti/cardslib, unfortunately without success.
When I want to including as it's described in the https://github.com/gabrielemariotti/cardslib/blob/master/doc/BUILD.md#reference-this-project-as-a-library-in-eclipse.
When I want to load the lib into the workspace the Error "An internal error occurred during: "Adjusting Android Project Classpath".
Source attachment path 'C:\Users\User\android-sdks\sources\android-14' for IClasspathEntry must be absolute" appears.
I never had such an error before. What causes it?
After pressing "OK" the lib gets into the workspace and "cardslib] Using 1.7 requires compiling with Android 4.4 (KitKat); currently using API 14" is shown on the console. So the lib is marked with an error.
After getting through the document (mark as lib etc. in properties) I still get some errors:
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
BuildConfig.java /cardslib/gen/it/gmariotti/cardslib/library/cards line 1 Java Problem
error: Error retrieving parent for item: No resource found that matches the given name 'card.native'.
styles.xml /cardslib/res/values line 23 Android AAPT Problem
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project cardslib Unknown Java Problem
I asked google about it already but didn't find a match so I hope someone can help me out.
Thanks in advance.
I just updated to the latest Android SDK Tools, r12.
Now compiling of my current project fails by
UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException:
already added: Lorg/anddev/andengine/audio/BaseAudioEntity;
<= The library is definitely added only once - so this must be a compiling problem.
It also fails finding some standard android themes:
...\res\values\styles.xml:4: error: Error retrieving parent for item:
No resource found that matches the given name
'#android:style/TextAppearance.Holo.Inverse'.
The paths to the SDK and other included libraries are correct.
Anyone with same issues?
Thank you!
OK I got the compiling issue fixed - this happened because I included an external library (AndEngine) which sources already were existent in the /out folder. After clearing the folder's contents the project compiled correctly.
"UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lorg/anddev/andengine/audio/BaseAudioEntity;"
Most probably there are AndEngine and some extension jars build so, that extension include classes of andengine. To resolve this issue -> exclude andengine src during rebuilding extensions (uncheck folder in export window).