ARCore project has no gradle file in Android studio - android

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.

Related

Android Pre-Dex: Android SDK is not specified without android SDK

I get this error in IDEA, but I don't want to use an Android SDK. I've been able to build and run just fine before, and one day I just opened my project like I usually do, and I started getting this error.
I'm working on a game with libgdx, and I've taken out all android dependencies (in the settings and build files). It has worked just fine before, how do I stop this error from happening?
Also, I can do ./gradlew desktop:build and ./gradlew desktop:run and everything works fine. So I'm guessing it's an IDEA thing...
Edit: In the suggested duplicate, the solution is to add a reference to the Android SDK. I don't want to use the Android SDK, so I can't use the solution on the suggested duplicate.
So I figured it out.
This was an IDEA problem, not a gradlew or LibGDX problem.
If someone wants to use LibGDX but without the Android SDK you need to do the following:
Remove 'android' from settings.gradle
Remove the android macro in the build.gradle
If you get the 'Android Pre Dex' error when trying to run in IDEA, you need to remove all Android references. It was under Project Structure -> Modules, one of the Modules will have an Android reference. Delete it, and you should be good to go!

App crash when attempt to run on device

I recently integrated Playscape SDK and android play services into my Unity (4.5.5) project. Build process for android run without any errors, however when I try to run the app on a device, black screen is shown (no Unity splash screen) and app is closed after few seconds.
Using android DDMS I get this error on top:
E/CRASH(24508): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/analytics/GoogleAnalytics;
What could the cause be?
your IDE is not able to find the class in the GoogleAnalytics make sure you include the libraries
If you're using Android Studio, you should check the build.gradle file and see the dependencies list to ensure all the libraries you're using are declared there. After that sync gradle. Then Clean Build your project. See if that works.

Android App is not installing in emulator or mobile

I am new to android. I am doing one app in that I used older version code(4.4) which is already available as project. I imported that project as module and added dependencies in my module "app". No errors are present at compile time or run time. It showing build successful. But when I am trying to install that apk file it was showing app not installed. It was not installing either in emulator or mobile. I thought that because of version difference so I changed the older version to newer version in manifest file and build.gradle file. After that also app was not installing. Can anybody help me why I am facing this problem.I am struggling from yesterday with this issue. Please help me..
I will be thankful.
Try running it via a gradle task.

android studio build error debug-unaligned.apk path not found

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:

Android Launcher application compilation on Eclipse

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.

Categories

Resources