Android Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES - java

I read all previous threads related to this matter but I could not solve my problem. Hence I post it here. My application has a text to pdf converter and I used iText for it. When I tried to install the application to the device the console says,
Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES.
Please check logcat output for more details.
Launch canceled!
In logcat it says,
01-15 14:30:09.019: E/PackageParser(2454): Package com.example.example has no certificates at entry res/layout/activity_main.xml; ignoring!
I'm using JDK 1.6 and android Android 4.4. I uninstalled previous .apk and clean and build the project.
EDIT: As a solution for this problem, I tried to sing the application using eclipse. But after gave the keystore and alias it is gave error as "duplicate files at the same path inside the apk". I checked my lib folder if there is any duplicate jars and cleaned and rebuilt it. But still I cannot export signed apk.
As far as I can understand issues for above both cases that jars may be has file same as in my application. But I don't know hot to solve this. Any suggestion would be welcome to get rid of this problem.

Related

Eclipse luna - Internal error, trying to import from git

I am using Eclipse Luna, and I am trying to import a project from github. However, it says "Internal error; consult Eclipse error log" when I pasted the URI in:
The project is valid. I've tried a few projects, and they all worked on my older Juno version of eclipse, but all failed on Luna, just like above. What should I do to reproduce this problem?
Here is my Eclipse log error: http://pastebin.com/QcfF4Xsq
I solved this problem going to "Preferences > General > Security > Secure Storage > Contents", open "[Default Secure Storage]", deleting the "GIT" row and finally restarting Eclipse.
You have a similar error message with other Eclipse-based products, like RTC:
A summary of the problem is that Eclipse uses a default location on your machine that is the same for all your Eclipse installs.
So if you have installed and used 32-bit Eclipse, then your secure storage requires the 32-bit plugins to access.
When you try to use a 64-bit Eclipse, it will try to read that secure storage and will fail because it is using the 64-bit plugins to read the storage.
The solution is to tell your Eclipse to use a different secure storage area. You can do this by running Eclipse with the following option:
-eclipse.keyring <file_path>
where <file_path> is the location of the file which you wish to use as your new secure storage area.
(You can check by the way if you have a consistent Eclipse distribution: all 32 bits or all 64 bits)
Note that another product (NetBeans) resolved the same error message like so (issue 211863)
I found the problem.
NetBeans is detecting a remnant of an Eclipse IDE installation. Once I deleted the file, the errors in the log went away.
C:\Documents and Settings\ttroy\.eclipse\org.eclipse.equinox.security\secure_storage
On Windows 7 or more:
C:\Users\<username>\.eclipse\org.eclipse.equinox.security\secure_storage
# or
%USERPROFILE%\.eclipse\org.eclipse.equinox.security\secure_storage
Delete C:\Users\USERNAME\.eclipse\org.eclipse.equinox.security\secure_storage it will resolve your problem.
This is the message I see in the eclipse Error log.
Secure storage was unable to retrieve the master password from the OS keyring. Make sure that this application has access to the OS keyring. If the error persists, the password recovery feature could be used, or secure storage can be deleted and re-created.
So as others said if you delete the secure_storage file and it should solve the problem.
On a mac, better use command line.
/Users/< userid >/.eclipse/org.eclipse.equinox.security

A command prompt pops up when working with Android (Eclipse IDE)

Okay so Im starting work on android application development. Ive downloaded the newest sdk's. But there seems to be a problem. Whenever i create a project or save a project or edit a project a command prompt pops up
(aapt.exe)
Ive experienced some stuff with android development before and this didnt happen before. Is there a way i can put android development into "Silent" mode while working as it gets somewhat annyoing.
Thanks
AAPT is a tool that processes the ressources of your app:
The Android Asset Packaging Tool (aapt) takes your application resource files, such as the AndroidManifest.xml file and the XML files for your Activities, and compiles them. An R.java is also produced so you can reference your resources from your Java code.
So I think that you did some errors in your ressources or xml files. Eclipse has problems to detect and show these kind of errors. You should check your xml files.
There are also some links on StackOverflow:
link1 link2 link3
Hope that helps you.

Android Studio 0.8.2 URI has an authority component

I am getting "Gradle project sync failed." when I start up Android Studio. When I try to clean the project, I get "Failed to complete Gradle execution Cause: URI has an authority component"
I've tried several things already and am still stuck. I moved my config files out of my user folders and put them in my root directory where I have Android Studio. (C:/Studio). I've also tried to invalidate caches but that still didn't help. I'm on a networked VDI so I'm not sure if that might have something to do with it. Below is the message I'm getting from Gradle sync. Any ideas what can be going wrong here?
Gradle Sync Message:
Error:Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/1.12/userguide/gradle_daemon.html
Please read below process output to find out more:
java.lang.IllegalArgumentException: URI has an authority component
at java.io.File.(File.java:423)
at org.gradle.api.internal.classpath.EffectiveClassPath.findAvailableClasspathFiles(EffectiveClassPath.java:41)
at org.gradle.api.internal.classpath.EffectiveClassPath.(EffectiveClassPath.java:32)
at org.gradle.api.internal.classpath.DefaultModuleRegistry.(DefaultModuleRegistry.java:61)
at org.gradle.api.internal.classpath.DefaultModuleRegistry.(DefaultModuleRegistry.java:55)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:41)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
at org.gradle.launcher.daemon.bootstrap.GradleDaemon.main(GradleDaemon.java:22)
The only cause I've seen of this is if your home directory is on a network share (it has a Windows path of the form (\\UNC_PATH\... instead of something like C:\ for a local file). Gradle doesn't properly support that right now. There's a bug in Android Studio's bug database to track it:
https://code.google.com/p/android/issues/detail?id=56444
and it references a bug in Gradleware's bug database:
https://issues.gradle.org/browse/GRADLE-2941
The Android Studio bug report lists this as a workaround:
I also faced same issue. Reason I figured out that may be when I
installed Android Studio with option -- Install to current User. This
step installed .gradle folder in the organization Network Path
[\{network}\users{USERID}.gradle]
Resolution step: [On Windows 7 Machine]
Copied .gradle folder from path on network [\{network}\users{USERID}.gradle] to [C:\Users{USERID}.gradle]
In Android Studio v-(Beta) 0.8.6 [File --> Settings] changed Gradle Settings
Global Gradle settings
Service directory path: C:/Users/{USERID}/.gradle
Gradle VM options: -Dhttp.proxyHost={dummyHost} -Dhttp.proxyPort={dummyPort} -Dhttp.proxyUser={dummyUser} -Dhttp.proxyPassword={dummyPassword}
I had also given Gradle VM options because it tried to download
Gradle-0.12+-all.jar before compiling.
if you don't have a strong internet connectivity make sure you select the offline mode from the console. Selecting offline mode could solve the issue.

eclipse throws AndroidManifest.xml file missing deployment error, though the file exist

I'm using eclipse android IDE (bundle)
a strange thing,
I have build my android application successfully (no errors)
it includes android Apllication project and a native c code project.
I try to run the android project on my android-device
and get this error:
Description Resource Path Location Type
AndroidManifest.xml file missing! WazeAndroid Unknown Android Packaging Problem
Although I see it in the package tree.
I have googled. tried t restart eclipse and my Mac
nothing helped.
Go to Project in menu and do Clean your project which one you selecting then run your program.
Here is a google offical solution
To fix this problem, simply delete the debug.keystore file. The default storage location for AVDs is in ~/.android/avd on OS X and Linux, in C:\Documents and Settings\.android\ on Windows XP, and in C:\Users\.android\ on Windows Vista.
The next time you build, the build tools will regenerate a new keystore and debug key.
I hope that this can help you.

Eclipse doesn't import java libraries on cold start, plus other compiling errors

Eclipse is giving me a few problems.
After a cold start and the loading of android libs, Eclipse underline the import statements or says that java.lang.Object couldn't be found.
Closing it and reopening often fix the problem. If it doesn't, another close-open fix it definitely. But it shows at each cold-start.
It also gives
"The type java.lang.Enum cannot be resolved. It is indirectly referenced from required .class files"
"The project cannot be build until build path errors are resolved"
But if i restart the build path errors and the enum problem are not show any more(sometimes the enum proble got fixed some time after eclipse's loading finished)
"Project 'xxx' is missing required source folder: 'gen' "
that should be generated automatically generated while building, and still restarting will fix them
In addition, in many projects, while building or cleaning, eclipse says that it couldn't delete the bin/. directory. I noticed that that directory is read-only, and if i try to remove the attribute(even from dos), it immediately return to read-only.
This problems aren't show-stoppers, i still can code and i still can get my apps exported, but it is quite annoying to have to restart eclipse a few times before being able to use it(and eclipse isn't that fast at opening), and i would really know how to fix it.
I searched in the net a bit, but i dind't found nothing useful or that worked.
Is there a way to fix them?
I didn't "unistalled"(it is just stored in a directory) Eclipse, since i should then reinstall android sdk, mercurial plugin, and re download and set up a few libraries i use in quite all my project, and i really hope there is another way.
final notes:
everything works when this problems doesn't show: the app works, logcat too, the right device is used to install the app, so i think java and android sdks are installed just right
I had that problem before so I just saved my projects to a different file and uninstalled everything ( java, android sdk, eclipse ). When I reinstalled it all I put the android sdk on the root of my c drive as I have a windows machine and then instead of picking where java was installed I let it do its own thing. I dont use a mercurial plug in but your "read only" problem could be related to that. Its possible your downloading files that are "read only" and there for you have no way to alter them. Im guessing since you said youve been programing you already know how to set the build paths and stuff. It might just be where everything is installed or something silly like privilege settings on your machine.
What were you using the mercurial plug in for anyway? just curious :)
Have you included the java lib in your project or? For a couple of weeks ago I sat with an project where i absolutly needed some of the methods, so because android just have some of the java lib I imported the need libs and used that.

Categories

Resources