I am trying to build CM12 from sources. Since it requires Java 7, I used update alternatives to switch from using Java 8 to Java 7.
After I use the 'brunch falcon' command, java somehow resets to Java 8 for that instance of the terminal and the build fails. Is there any way to stop that from happening?
SaurabhSandav said:
I am trying to build CM12 from sources. Since it requires Java 7, I used update alternatives to switch from using Java 8 to Java 7.
After I use the 'brunch falcon' command, java somehow resets to Java 8 for that instance of the terminal and the build fails. Is there any way to stop that from happening?
Click to expand...
Click to collapse
A quick solution would be to uninstall java 8 and only use java 7. Otherwise you'll have to ensure the system path to the java executable, points to Java 7
Hello,
I am new to android studio and I am not able to fix the issue of run button. I have opened my existing project and the run option is disabled in android studio. I am getting error as:- StreamCorruptedException: Failed to maintain projects LRU cache for dir C:\Users\bhavya\.AndroidStudio2.2\system\resource_folder_cache: invalid stream header: 00000000
What should I do?
I have installed android studio on puppy linux precise 5.71
When I start studio.sh following errormessage is shown and studio does not start
Unable parse command line: Unknown option --error
I have changed script from !/usr/bin/sh to /usr/bin/bash but still same error
Can anybody tell me how to rectify this error ?
Thanks in advance
Hello developers,
Since I am new to the forum, I was unable to post my question in the Android developer section.
I am having a problem lately with Android Studio ever since I updated to 2.3.3
The error occurs when I try to run or build a project. Here is error message:
Code:
Error:Execution failed for task ':directoryPicker:processReleaseResources'.
> java.io.IOException: Could not delete path 'C:\Users\XXXXXXX\Desktop\XXXXXXXXX\XXXXXXXXX\directoryPicker\build\generated\source\r\release\android\support\compat'.
Every time I want to build or run the project, I have to "Build > Clean project". This happens to all my projects and not only one project. I did the following:
Ran Android Studio in Administration mode
Deleted the build folder
Restarted the computer and Android Studio
But no luck! Any idea on how to resolve this issue?
Also please be informed that the file path varies. Sometimes it's "android\support\compact" and sometimes it's something else!
From an ADB shell, I tried running:
Code:
as helloworld.s -o helloworld.o
but it seems that the GNU assembler is not included in Android.
I also tried it from a root shell on the device.
I was just wondering if anyone knows whether there is an assembler and linker included on Android? If not, is it possible to install one?
Thanks.
Wondering why Android OS should have included GNU assembler ( GAS ) ?
BTW: GNU assembler for ARM exists
In order to compile your assembly program, you will need the Android NDK, the Native Development Kit, which contains a set of compilers and build tools for the ARM platform. You can get download it directly from the official site, or install it through Android Studio.
But please note that this is for Windows, Mac or Linux instead of Android OS.
James_Watson said:
In order to compile your assembly program, you will need the Android NDK, the Native Development Kit, which contains a set of compilers and build tools for the ARM platform. You can get download it directly from the official site, or install it through Android Studio.
But please note that this is for Windows, Mac or Linux instead of Android OS.
Click to expand...
Click to collapse
I was hoping to find one that will run on Android itself.
OK so as far as I can tell, there is no assembler or linker included on Android, since apps are created from x86_64 machines and then installed on the device. So I went with installing binutils via Termux.
- Installed f-droid
- Installed Termux via f-droid (The version in the play store has an out of date sources.list and the app hasn't been updated since September. Evidently the Termux dev group is releasing via f-droid now, not via the Play store.)
- From Termux, ran the following:
$ pkg update
$ pkg install binutils
This allowed me to use the GNU assmbler (as) and linker (ld).
Just leaving this note here in case anyone else wants to do the same thing and finds this thread.