I recently updated my android SDK platform, since the update when i try to generate a signed APK in intelliJ idea i get no error in compilation and packaging process (even proguard works fine) but no apk file is generated in the destination. I am able to run my app on emulator and devices, means that debug apk is generated correctly.
I tried cleaning and rebuilding, no luck. I thought that this might be a problem with project settings, so i tried to generate APKs for other android projects or even an empty Hello World project, the problem still exists.
Is there any log files or other things that i can post here to help clarify the problem?
Well, this was an irrelevant (to android SDK) problem that i was struggling with last two days.
The problem solved by removing following directory:
%HOME%\.IntelliJIdea14\system\caches
had just the very same trouble, have tried around and got it to my surprise. So the how do to is a better hint:
Make an Ant-Build
Build .. Generate ant on the left side add it press "play"
Build your project.release ..
.. .. Now here I got a clear Error message:
"wrong android sdk build-tools version" hopefully you will get the right for you.
some apk's were generated but not installed on a phone.
Still I was not able to generate signed apk.
Deleted the ant build xx .., restarted IntelliJ 15.x
tried.xx.. now it works. hope it helps.
Related
I have an app that is build using React and is wrapped in capacitor. I was having no issues running the app in debug mode on android studio a month ago, or creating release files, but now I am.
I have checked the app-debug.apk (static/js/main.chunk......) file that is created when I select run, and it contains the updated code, I have sent the package to a colleague who ran the .apk on their machine and saw the updated code, but on my emulator and on my android devices, I am seeing an old version of the code.
I have removed all debug-release.apk files on my Mac and followed steps online such as clean build/rebuild, updates off mac, android studio etc but still no luck.
I am at a complete loss now.
Any ideas?
Thanks
Update: After much troubleshooting, we deleted the build folder android>app>build and the rebuilt the app, and ran it, and it fixed the issue.
Every time I try to run my app on an emulator or device, installation fails with an INSTALL_FAILED_DEXOPT error. Examining LogCat and the apk spit out by Android Studio reveals that the apk does not contain any classes.dex file.
Strangely, compiling the project from the command line works properly, and will even get android studio to work for a few builds (although the resulting apk does not work completely).
I have tried EVERYTHING TO GET THIS ERROR TO STOP. Reinstalling AS, reinstalling the SDK, reinstalling the JDK, restarting my PC, recreating projects, nothing helps. This error just won't go away. I really want to be able to use Android Studio and get away from Eclipse, but Google is making that really hard.
Anyone have any ideas?
Last night I updated my android studio to 0.5.3 and since than i am getting this error message whenever I am trying to generate a signed-apk. It does not occur when I am just running the project over android studio.
I tried rebuilding, cleaning project, restarting android-studio, reimporting the project, no success. I am pretty desperate right now
EDIT: i found out that actually debug-unaligned is not generated... But why is that? And why do i need to generate it if i am just trying to sign the app
In 0.5.3, we tried to speed up the build process by not having it do a full build to an APK except when it needs to, but we missed some cases where it needs to.
You can follow progress in https://code.google.com/p/android/issues/detail?id=67948 but in the meantime you can work around it by running the assembleRelease task, either from the command line or from the Gradle tasks view:
I have an issue where every time I try to run a project (that has normally run before), eclipse tells me I have compile errors. There are no errors in the code, the console is empty and I haven't changed anything in the build path...recently. I can actually export the application and install it on the phone and it runs fine, but playing from Eclipse if broken for some reason. I wish I could give more info, but there is nothing to show :/
EDIT: I can't even run a new project. I just tried to make a Hello World app and it still says I have compilation errors. I don't know if this might help so I figured I would add it.
EDIT 2: Problems tab stats this: "Description Resource Path Location Type Error generating final archive: Debug Certificate expired on 3/30/12 10:10 AM TestApp Unknown Android Packaging Problem."
FIXED: debug.keystore issue fixer upper
Help?
Go to window --> preferences --> Android --> build, see where Eclipse points to your debug.keystore, go there delete it, and relaunch Eclipse.
For some reason, after I build my Android project in Eclipse, it is not giving me any errors, but none of my updates are being compiled.
I've tried both running my app in the emulator, and installing the apk on my phone. It still only compiles the old version of my app, not the new one. I've tried deleting the apk in the bin folder manually before recompiling it, and cleaning the project.
The previous thing that occurred was, my certificate expired, so I deleted the old certificate file.
I do not see any errors in the error log or the console. I'm still pretty new to all this.
This has been driving me nuts recently. I recently migrated from XP to Windows 7, and thought it was a quirk of Eclipse running in XP, but it is still happening, i.e. any changes made, I had to compile twice to get the current version.
For some reason, the solution for me is to make sure the changes are saved before compiling. If you don't save, and do so on the Dialog that pops up when you compile/run, you have to go again. Don't know why this is, maybe I am missing something, it worked fine a few months ago.
Eclipse can mess up sometimes. It would be worth closing Eclipse and rebooting your PC.
Edit: Try reconfiguring your Run Configuration by deleting it and recreating it
Eclipse didn't export the most recent updates for my app.
What worked for me:
In terminal (being in the work folder):
cordova build android
In Eclipse: Clean project.
Refresh
Export app