IntelliJ: project not generated with android tool - permission denied - android

I'm at a bit of a loss with this one, I'm sure it's a pretty simple problem really.
It has located the SDK and I have already installed the required build tools etc. For some reason it doesn't have permission to access the files.
I'm using ubuntu and the SDK is installed in /usr/local/android/android-sdk-linux/ . Is this as simple a problem as me placing the SDK in a bad location?
EDIT: I have fixed the issue by using the following in the command line:
chmod a+x .../tools/android
However, I'd like to know if I've removed all issues I might face in the future, and how I should actually correct this.

In case anyone else stumbles across this:
I have fixed the issue by using the following in the command line:
chmod a+x .../tools/android
Thus allowing access to the android function in the tools directory. Everything seems to be working fine now.

Related

Module not found running npx react-native start

I've been wrestling with this problem of a module not being found when starting from a new or existing (ejected from expo) react-native project. After searching SO for similar problems, the errors thrown in those problems were too different for me to piece a solution from them.
Here is the command line after running the exact command:
Module not found
So overall I don't know what's really going on here. Errors are being thrown in a lot of files that are abstracted from what I usually work on.
At first, I was working with an ejected expo project but stepped away from that to start a fresh react-native CLI project following the quick start guide from the docs. I followed everything with no obvious impediment until it comes to actually executing the project.
The first thing I tried was deleting the node modules and running npm install. Note: I did not delete the package-lock.json though. I also ran a command to --force delete the cache at some point. I think I did that before I tried to delete node altogether and start from the absolute latest LTS version. During the quickstart, I ran choco install -y nodejs.install openjdk8 which installed version 16 of node and jdk8. I did already have jdk11; am I not using this kit correctly maybe?
Earlier in the day, the trace to where the error could not be found did NOT include react-native-community/cli in the path until I ran the above choco install. So it had some effect but still, nothing about the actual error changed. In the docs, it says explicitly that react-native-cli (or something like it) is packaged in with node.js so there is no need to run npm install #react-native-commmunity/cli. But, I've read conflicting solutions saying that, in fact, I do need it. Alas, installing #react-native-community/cli or react-native-cli globally had no effect.
At this point, I'm assuming the information/file I need is there but my computer is pointed to the wrong place. In the folder 'Work' there is no #react-native-community\cli\build\bin.js.
The .bin folder in node_modules: react-native files in .bin
To be honest I don't really understand these files but maybe something warrants changing? I can post a picture at request but I'm doubting a change is needed here.
Thank you for reading. Hopefully, I can get this up and running because my only avenue to meet my user stories is to manipulate the native android code.
Well, I feel silly but I learned something.
The reason the command didn't work was because one of my folders was named 'Routing&DeliveryApp'. Apparently, having an ampersand in the name will throw off the computer. So, it was cut off right after the ampersand searching in a folder named 'DeliveryApp' which did not exist.
Still felt like a eureka moment though. Hopefully this might help someone in the future.

Could not find 19 Android X assemblies, make sure to install nugget packages Xamarin

I am trying to integrate Firebase Analytics into my app and I am following this really helpful article https://www.thewissen.io/using-firebase-analytics-in-your-xamarin-forms-app/
but when I download any of the nugget packages mentioned in the article my app gives me this error "Could not find 19 Android X assemblies, make sure to install nugget packages Xamarin".The Nugets I install are
Xamarin.FireBase.Analytics
Xamarin.FireBase.Analytics.Impl
Plugin.CurrentActivity
I follow the prompt exactly and it is asking me to install the following NUGETS:
Xamarin.androisX.Lifecycle.LiveData,
Xamarin.AndroidX.Browser,
Xamarin.Google.Android.Material,
Xamarin.AndroidX.Legacy.Support.V4
I have done that and when I clean my project and rebuild I get
java.exe exited with code 1 msb6006
I have tried removing other nugets that might be causing issues but my code only works after I remove all three of the Nugets mentioned in the article. I have read other articles and they all say to use those.
Other nuggets I have include:
Microsoft.AppCenter,
Microsoft.AppCenter.Analytics
Microsoft.AppCenter.Crashes
I don't really know how to fix this issue, I have tried reading about these packages and they all seem to be continuously worked on so they don't seem to be outdated or anything like that.
Also I followed the articles iOS implementation and it worked fine.
I had the same problem with adding Firebase to a new Xamarin Forms (4.8.0) app. When I updated my Android csproj file directly with the packages listed in the error message and rebuilt it worked though.

Error code 1. Cordova Visual 2015 Studio

I was usually running my application, however was not getting access in the emulator due to the network proxy, I made some changes in the emulator network to gain access, however now when I run the application I'm having the following error:
I have tried clearing the cordova cache several times however not decided.
Also I tried to delete the specific way, however also not decided, what should I do with this error.
Sorry to hear about your trouble. There are a couple of things that could be causing this. One possibility is that you need the 64-bit JDK because you are running into issues. However, it looks like you're more likely missing a dependency.
Can you try running the dependency checker and verify that you're not missing anything? Go to tools -> options -> Tools for Apache Cordova -> Run Dependency Checker and install anything that it says you're missing.

Configuring Android to use in terminal for Linux Mint

I am currently using Eclipse to develop Android apps. Following the Android Developer tutorial, they had the option to program using the command line. I am interested in doing it this way but ran into a number of errors. I have tried several solutions available on the internet and I fear that I might have added to many things on my PATH file. None of the solutions have worked for me.
I am very lost with all these directories. Please help for Linux Mint specific distribution.
Key errors to address are:
android: command not found
and
ant debug
Buildfile: build.xml does not exist!
Build failed
I downloaded adt-bundle-linux-x86-20130717.
Update:
I think I managed to get the android command working by hardcoding the following on my bash.bashrc:
/etc/.../sdk/tools
/etc/.../sdk/platform-tools
Please let me know if it is recommended to do this another way.
However, ant debug is still not working.
If ADB is properly in your path, the android command should launch the SDK updater. Here is what I have in my .bashrc
# SDK
PATH=${PATH}:~/android-sdk/tools
PATH=${PATH}:~/android-sdk/platform-tools
You put the environment variable configuration in which files? configuration is completed, use the source command to run the file, or try to restart the computer

I keep getting a "[...]/bin/*-ar: not found" error while building the V8 javascript engine for Android

I'm trying to build the V8 javascript engine for Android but I can't succeed for some reason. I follow the instructions given here. It all starts very well. I can issue the make android_arm.release -j8 command from my terminal and it seems very sweet for a while. Then suddenly I get this output:
/bin/sh: 1: /home/dbm/android/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/*-ar: not found
The statement is correct: there is no *-ar file at the specified location.
But what is an *-ar file? And how can I resolve this error?
The environment is a beast running Ubuntu 12.10 on a 64-bit architecture (with ia32-libs installed) and I build for/with/against Android NDK r8c.
There seems to be a problem in Ubuntu!?
Anyway - extracting via tar -jxf worked for me. See http://code.google.com/p/android/issues/detail?id=41187
The issue lies with the fact that the NDK build system prefixes the platform name to the commands that are run to build the source. If you notice the error you get, the correct platform prefix is missing from *-ar. Somehow, the platform name is being set to * instead of the correct prefix arm-linux-androideabi (giving the correct name arm-linux-androideabi-ar). You'll need to figure out where this information is being skipped. That should fix your problem.
PS. If I get some free time, I'll try and replicate your issue and see if I can give you the exact fix.
Use the 'tar -jxf' to extract the android ndk. If you use the 'Extract here' option, it seems to be leaving out some files.
ar is archive utility from gnu tools. Normally you should have a $NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-ar available in your tool chain. which looks like missing in yours.

Categories

Resources