Phonegap - Hello Cordova error - android

I followed the first tutorial of Phonegap - getting started with Android. I wrote the example "HelloCordova" as showed here. But when I click "run as Android application" Eclipse displays your project contains error(s), please fix them before running your applications. No error is pointed! I can't understand where's the problem (my file matches the example)!
Problems:
Error generating final archive: Debug Certificate expired on 07/04/12 0.34
Location: Unknown
Type: Android Packaging Problem
Any advice? Thanks!

This problem is not related with Phonegap ...
You should delete the debug file at "%USERPROFILE%/.android/debug.keystore", so then eclipse will gerenate a new debug file

Check the android manifest file for any errors. Even the manifest file must be free of errors. You may have overlooked it as it is the last third file. Check with that for errors.

Related

React-native release apk refuses to install

I have encounter a problem I am unable to solve, I have followed all steps from:
Unable to install signed apk from React Native but the ones in Android Studio since I am not using it and the steps needed to sign the apk from https://facebook.github.io/react-native/docs/signed-apk-android, I still get the error:
There was a problem parsing the package
In logcat I get the error:
05-23 09:44:23.964 3613 3613 W PackageInstaller: Parse error when parsing manifest. Discontinuing installation
This error make me thing the error cannot be with signature but there is no manifest file, I searched for it and debug build works.
It only happens with release builds. I hope some of you can help me since I am lost.
I have recreated the project and repeated the steps, that solved the problem.

AndroidManifest no resource found

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

Getting error on every newly created project

Whenever I create a new project in Eclipse for some Android application it gives me a red cross sign and on compiling shows following errors:
error generating final archive: java.io.FileNotFoundException: C:\..\bin\resources.ap_ does not exist
Unparsed aapt error(s)! Check the console for output.
On Googling I found that by cleaning the project we can remove this error but it is not working in my case.
Earlier I was able to create Project in Eclipse. All this problem started after installing some Google APIs but I guess they are not cause of problem, something else is there.
Could it be an issue with a command path?
SDK doesnt like being installed in dirs with long names like "Program Files\Google\Android..."
If thats the case, youll need to adjust path appropriately (C:\Progra~2... or smth like this)
( check http://ideanotion.net/android-sdk-invalid-command-line-parameter-files-error/ or Google )

Type Error - generating final archive: java.lang.ArrayIndexOutOfBoundsException: 13 , Type: Android packaging problem

I have a weird problem. I have installed windows 7 on my machine.
For android installation i have downloaded the latest android sdk, installed plugins, set the paths and all... as i have done it several times....
But when i create a new sample project and compile it it shows red cross on the project in Package explorer and i am not able to run the program.(I have compiled the project successfully and it is not the R.java file error... :-) )
In the Problem window it shows on error and that is
Type Error - generating final archive: java.lang.ArrayIndexOutOfBoundsException: 13 , Type: Android packaging problem.
Struggling with this for last one week and getting more and more frustrated.
I will very thankful if some solve my prol
Do a Project->Clean in Eclipse, see if that'll help out.
I have found this bug in my system to
and got puzzeled and ask question http://stackoverflow.com/questions/18045984/eclipse-pacakge-error-found-no-solutions
But At last i got the soulution
that worked for me
First change laguage from hindi(or some thing) to English
delete the debug key (Can be found on my doucument and folder named ".android")
and do
"eclipse.exe -clean" from command promp
this will generate a dubug keystore and project runs normally.

Android error not visible

When I attempt to run my Android application I get the following message:
your project contains error(s), please fix them before running your application
All I did was to clean the application and everything went wrong.
Normally, you would see a red asterisk against the offending file and the corresponding line with the error. But in this case I get no such indication.
Screenshots:
Sounds like you have a syntax error in one of your XML files, or an invalid file name.
When you do a clean it deletes certain files, it would then automatically build, if you have syntax errors the R.java file won't be generated and you will have the above error.
you can check in android console(window->show view->console),it will give some more information,check it once,check your build path if your are import your project somewhere else and the project uses 3rd party libraries or you may have problems with your XML resources.
Found the source of my mysterious error.
It turns out it was a imported java class I had forgotten about which I wasn't using and caused the error to showup when I "cleaned" the project.
I visited the build path where I saw it had an associated error. I removed it and all was well.

Categories

Resources