Android Launcher application compilation on Eclipse - android

I am modifying the Android Home (Launcher) application and configured an eclipse project from the Android source checkout. Eclipse project shows number of errors which are about unresolved imports and unavailable flags. Upon checking in the internet at http://forum.xda-developers.com/showthread.php?p=8402045 , I found that the home application will not compile with the public SDK, but as part of the OS compilation, it is generated.
My question is how can I resolve the compilation errors in my eclipse project? Have anyone faced this public SDK and home application compilation issue?
I want to be able to build my Launcher.apk right from eclipse and run it.

Take a look at this thread to have more informations:
http://groups.google.com/group/android-developers/browse_thread/thread/cc8f4b3de53599b7

My question is how can I resolve the compilation errors in my eclipse project?
You don't. You can only build the Launcher application as part of the full firmware.
I want to be able to build my Launcher.apk right from eclipse and run it.
That is not possible, sorry. There is as sample Home application in your SDK that can be built from the SDK, though, if that helps.

Related

ARCore project has no gradle file in Android studio

I downloaded ARCore project and edited the project to run on older devices than Android 7.0 by following some online tutorial that simply editing the manifest file minsdkversion. Then I decompiled the code and signed it with my own debug keys. But all I see is a project without gradle and I am confused with everything at this point.Here is a screenshot of my whole project and gradle settings.
And when I try to run the project, I get this.
So my question is, where is Gradle file? Has anyone tried it and run into this kind of issues?
Do know for grale, but the error you get is the TestRunner, that runs the unit tests, this is not the main application launcher.

Android Studio reports "Could not identify launch activity: Default Activity not found" when building Kotlin projects

I'm trying to build an Android app using Kotlin and Anko. When I select "Run" in Android Studio I get the error:
Could not identify launch activity: Default Activity not found
Error while Launching activity
and the app does not start. I get this error with both the emulator and with a real phone.
To try and narrow down the problem I tried a couple of sample Anko projects, including android-anko-sample, and they all exhibit this same broken behavior.
I have other Android projects I've written in Java, and they run without this problem, which suggests that this is somehow a Kotlin or Anko specific issue. I can even switch back and forth between one of my Java apps and the "android-anko-sample" app linked above, and reproduce the problem with android-anko-sample consistently, while my Java app works correctly every time.
I have looked at other questions involving this error message, and the solutions posted were either not applicable or didn't help.
One thing I have noticed that's weird is that when I open AndroidManifest.xml (of any of these Anko apps) in Android Studio the names of the activities are shown in red, as if they are errors. Here's how the one from android-anko-sample looks:
Note that the app does get installed on the phone/emulator, and I can tap on the icon and run it. It just won't automatically start when I select run from Android Studio, which is pretty inconvenient.
How do I fix this issue?
I'm using:
Android Studio 2.1.2
Ubuntu Linux 16.04
Oracle JDK 1.8.0_131-b11
Code is here:
https://github.com/vsouhrada/android-anko-sample
The complete contents of a few of Android Studio's panes are available in this gist:
https://gist.github.com/xenomachina/e8027b385661038c3f020a543493eebf
This was caused by not having the Kotlin plugin installed in Android Studio.
To fix, go to File → Settings → Plugins → Browse Repositories, find "Kotlin", and install it.

Android Studio Blank Activity Compilation Fails

I have been coding for a few years now and decided it was time to sink my teeth into android development. So I downloaded the latest version of Android Studio and installed all the relevant components with the installer.
However when i try to create a new project, using the blank activity, without even changing a single line of code, or editing the project in any way, the compile fails with the below error:
android execution failed for task :app:packageDebug
> Implementing Class
I have no idea of to fix this, any help would be greatly appreciated.
Thanks
I have been having the same error message. This is what I have found out:
I have a Mac Book Air with a Custom OS Image installed (from work) and on this computer I see the same error message above even from a fresh install (custom image) and fresh install of JavaRE and JDK as per the Android Studio System Requirements. Also a fresh install of Android Studio using a Blank activity with no additional lines of code.
However, I reinstalled OS X 10.10 from scratch, straight from the App store, with no OS customizations, installed the same JavaRE, JDK and Android Studio and the Error message did not appear.
I have been scratching my head over this error for a while now and this is the only solution that I have found. I'll keep digging and report back if I find a better solution.

Android IntelliJ IDEA 14.1: No main class for module

I previously had a working android project when I was using IntelliJ IDEA 14. I could run the project by pressing the play button, and it would install and start the application on my device.
I recently updated to 14.1. The code still appears to compile fine, I can see that it generates an APK and I can view it in the output folder (out/production/myapp/myapp.apk), but now I get an error when I attempt to run the project:
Error:No main class for module: app
I've tried creating two new projects, one based on the Android->Application Module template and another based on the Android->Gradle: Application Module template, and both have the same issue - they spit out the error above with the default configuration.
I assume that this must work on other users boxes, particularly because I haven't found anything online or any bug reports about it, but I guess there is a very minute possibility that I'm the first one to find this.
Is this an issue with IntelliJ IDEA 14.1 or just my box? Any ideas on how to fix it or where to start would be greatly appreciated.
I was having similar issue.
Do you have haxe plugin installed? Try to uninstall and try after that and it should work.

GStreamer cant be resolved error in eclipse

I've imported the tutorials from the gst-sdk folder in eclipse. But even after adding native support, i'm getting the error import to gstreamer cant be resolved.
The error is basically make.exe has stopped working. Hence, eclipse closes. So,i think the root problem occurs during th e phase of add native support. After that only, am not able to build my application or solve the errors.
There are currently issues with building ndk applications in Eclipse if you use Eclipse Juno or are running on Windows see the Using the NDK Plugin page for more information.
I have been able to get the tutorials to build and run by disabling the CDT builder in the Eclipse project and building the GStreamer libraries by running ndk-make via the command line. You can find more information in this post.

Categories

Resources