Setting up Android Bootstrap in IntelliJ - android

I found this open source project: Android Boostrap. However, I am having some troubles with getting it run in IntelliJ. I have followed their own instructions, but still I am running into some problems. Note that I just started using IntelliJ. I cannot even describe the errors I am getting very precisely, since I am not sure about what exactly is causing them. Here is the screenshot of what I have:
Navigating to the problem:
How do you suggest me to solve it?
Another snapshot regarding unsupported import:

Related

GradleException Log location

I need some help finding the Gradle build logs in Android Studio. I keep running into compatibility issues when adding new Android features to my apps. My latest one was adding Room db. My app compiles fine. I add the new dependencies in build.gradle and the app compiles fine again. As soon as I start trying to use Room I try to build my app it fails. I end up spending hours trying to troubleshoot my build.gradle files to find my errors. (This has happened a few times) The Error I got this time is:
org.gradle.api.GradleException: Compilation error. See log for more
details.
I can't find where the log is. I am using Android Studio Chipmunk in Fedora 36. I saw an old posts that showed a buttons and links to the logs. The posts were older and the users were on Windows and Mac-OS. I don't seem to have them in the Linux version. I can't be the only one running into this. This seems like such a novice issue but I have been looking for a while and can't find the answer. I don't know how to effectively troubleshoot this if I can't see the detailed errors. Any help is greatly appreciated.
My build.gradle logs are located in /tmp.
I found them by going to the Help menu then selecting Collect Logs and Diagnostic Data in Android Studio. This then gave me a popup with an option to Show in Files. The file that appears to contain the data is kotlin-daemon.timestamp.log where time stamp is going to by different for you.

IDE Fatal Error: Write access is allowed from write-safe contexts only

I have built simple Hello World application and ran it from IntelliJ on my Android device. When application starts, IDE error occur:
Write access is allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not "any"). See TransactionGuard documentation for details.
In the following window:
Simultaneously, application runs ok.
What is the reason and how to get rid of this message?
Got this same error after upgrading from a 2015 edition of IntelliJ to 2016.3.3.
After restarting the IDE, I took the suggested popup's guidance to upgrade Gradle, which then resynced and this error went away.
My project runs now and doesn't produce this error anymore.
If you are in a similar situation, I can recommend the above, as it removed this exact error in my setup.

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.

Android eclipse run program causes Installation error: 0

I have an Android application. In the latest version I've moved some code from it into separate Android Library projects (two). One library depends on another and project depends on both libraries. So, as I understand, one library includes into final application "twice" (or something similar to twice).
On the first launch of application I receive following in Console (I am using Eclipse):
Installation error: 0
Please check logcat output for more details.
Launch canceled!
Can anybody help?
Thanks!
EDIT
On the second launch program starts normally.
EDIT
I tried to reproduce error on the emulator and other device, it didn't reproduce! Can a problem be on my device? May be on file not deleted or something else?
I've reinstalled Android on my phone and problem solved :) Not a good solution, but works.

Why does android studio allow me to compile with syntax errors

Hi this may sound like a weird question, but I am new to Android Studio. So far I really like it, but there is one thing that is bugging me. In Eclipse if I ever had a syntax error in my code for example I forgot a ; or something like that. It would not allow me to build my project until I fixed the error.
In android studio I removed some buttons that are referenced several times in the code, and I expected it to gong it and tell me all the places that I referenced the button, but it just runs like normal. Then whenever I get to the part in code where those buttons are referenced the app just crashes.
Is there a way to get Android Studio to find syntax errors?
Eclipse uses a specially instrumented compiler to find errors. The compiler that is compiling your code is the the thing that is generating error messages you see in the IDE
Studio (and Netbeans, incidentally) don't work like that. Your app is assembled by an external build system (Gradle, in the case of Studio), using whatever tools it finds. Studio, independently, generates error messages by analyzing artifacts.
Every now and then, Studio gets out of sync. A rebuild will usually fix it.

Categories

Resources