Unable to build my first Android program - android

I am using,
Version: Helios Service Release 2
Build id: 20110218-0911
When I try to run the project1 I get the following error.
'Lauching project1' has encountered a problem.
Errors occured during the build.
Errors occurred during the build.
Errors running builder 'Android Package Builder' on project 'project1'.
sun.security.x509.X500Name.
Can someone guide me on to resolve this issue?
Regards,
Subbu

I have same problem, because I use IBM JRE first time. Then I re-install all of them by follow up the installing guide order:
Install Sun JDK firstly, then install SDK manager and make sure it find Sun JDK location, then install Eclipse Classic,etc.

user671253 pointed to a solution that worked for me. That is, installing the Oracle JDK 7u11, and then pointing Eclipse to its JRE :
Go to Windows > Preferences > Java > Installed JREs. Point it to the Sun JDK (Sun JRE might work but I used JDK). Then restart the workbench.

i would recommend getting the "eclipse classic" and installing android plugin to it instead of trying using the eclipse Java EE and other versions. Eclipse seems to break if too many plugings are loaded, that my experiance with android in eclipse.

Related

android studio not starting java.lang.NoSuchMethodError

i get this error when starting android studio
java.lang.NoSuchMethodError: com.intellij.ide.plugins.PluginManagerCore.loadDescriptors()[Lcom/intellij/ide/plugins/IdeaPluginDescriptorImpl;
at com.a.a.b.b.ar.a(ar.java:121)
at com.a.a.b.b.ar.a(ar.java:71)
at com.intellij.idea.MainImpl.start(MainImpl.java:19)
at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:303)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:245)
at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:47)
at java.lang.Thread.run(Thread.java:748) .... JRE 1.8.0_242 release-1644-b3-6222593 amd64 by JetBrains s.r.o ***/opt/android-studio-ide-201.6858069-linux/android-studio/jre/jre
my operating system is ubuntu 20.04 LTS 64bit
I first encountered this issue after updating my Android Studio to 4.0.1 allbeit on a MacOS.
To fix this issue, please take the following steps:
Go to the directory ~/Library/Application Support/AndroidStudio
You would find marketplace folder in this location.
Rename this folder and attempt starting Android Studio again.
When Android Studio starts up again, go to Android Studio -> Preferences
Goto Plugins and click installed.
The incompatible plugins would surface at this stage. Click delete/uninstall for these plugins.
Restart the IDE and all should be perfect.
That error indicates an issue in IDE plugins.
Remove the Android Studio folder in ~/.local/share/Google/.
This should fix your issue.
I had the same problem on my machine. It was solved by deleting the plugins folder located in .local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283.plugins/marketplace. Note that 201.6953283 was my current version of Android Studio.
You can use the canary build until Google releases v4.2. This worked for me. Just open software install and search for "android studio canary."
I ran into this issue after upgrading from Android Studio 4.0.1 to 4.1.1, but solved it by deleting some plugins under the directory ~/.local/share/Google/AndroidStudio4.1. The plugins I deleted were:
idea-multimarkdown
Gauge-Java-Intellij
markdown
marketplace
i dont know what cause this issue but run it as sudo solve it .
your installation directory is /opt so run this command on terminal
sudo ./opt/androidStudioDirectory/bin/studio.sh

Visual Studio 2015 hangs when create/open a Cordova project

I used Visual Studio 2015 to develop mobile app with Cordova. Before I upgraded to Windows10, I was using Windows 7 and it worked perfectly fine. After I've upgraded to Windows10, whenever I open a Cordova project or create a Cordova project the Visual Studio hangs (not responding).
I have tried to reinstall the Visual Studio but it still hangs.
Anyone has faced this problem before?
Thanks
Here is the solution for this problem in VS 2015. This issue if you have Windows 10 and latest updates in VS 2015 including latest type script installation.
1) Open command prompt as administrator.
2) Navigate to the following folder path:
cd "C:\ProgramData\Package Cache"
3) write the following command to find out vs_edition.exe file:
dir vs*exe /s /b
4) copy the full path that contains your vs edition exe from the screen.
5) write the following command:
"C:\ProgramData\Package Cache\{GUID}\vs_enterprise.exe" /modify /installselectableitems Javascript
6) VS installer will start, click on modify and then update. no need to change any features selection.
7) Wait until the installer finishes.
8) From the command prompt, navigate to the following folder:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
9) Run the following commands:
devenv /updateconfiguration
devenv /clearcache
Below screenshot shows the full commands set.
Now, you will be able to open VS 2015 and create cordova apps.
This is a known issue, and the solution is mentioned in the following link.
I still had few more issues with the Blank Cordova Project which would simply not build once the hanging issue was fixed. I'll share my experience here to help others.
After recovering from the VS.Net2015 hanging I was still getting
"Error MSB3073 The command "platforms\android\cordova\clean.bat" exited with code 1. BlankCordovaApp7 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets 354"
I tried reinstalling the Android Studio again and found that it was not working, and the issue was: I had installed a 32 bit Java SDK on 64Bit OS. After In installed the 64Bit JDK and correcting the Path variable to point to this directory, I was able to start the Android Studio.
Now my Blank Cordova project was still not compiling with an error
'MySQL' is not recognized as an internal or external command, BlankCordovaApp7 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets 287
This was an interesting one, looks like its an issue with MySQL, in the PATH variable there were some & within the path. I used "" to surround those path
Now its compiling and also able to start the Ripple.
Hope it helps someone as it took me more than 2 weeks to fix.
Regards
Kiran
Today , solved for me with Visual Studio Tools for Apache Cordova Update 2 for VS2015 Enterprise & Windows 8.1. ;-)
I think there are some updates for Visual Studio 2015. I reinstalled it and it is working now.
Here is what I did:
Uninstall the Visual Studio 2015 using the installer (vs-community.exe) from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
Install Visual Studio 2015 using the same installer(vs-community.exe) and choose Typical Installation
After the installation is done, run the installer (vs-community.exe) again and choose Custom Installation and choose to install Apache Cordova
Then I am able to open and build Cordova project
Not sure if this helps.
In my case with VS2015, the problem was about missing SDK build tools for Android. The lack of information is due to the fact that Visual Studio does not show all the build information by default. Once more information is shown, we could see issues with third party dependency issues like Android build tool. There are a couple of ways to get more information during a build.
MSBuild build output verbosity
Dependency checker on the Cordova tools
Both of these are available from the tools menu. For more information see this post:
http://www.ozkary.com/2016/01/visual-studio-2015-apache-cordova.html
hope it helps.

IBM Worklight 6.1 - "Missing .project file" error while trying to build the Android environment

After I installed Worklight 6.1 and the Android plug-in and SDK, I got the below exception when trying to build an app:
[2013-12-13 13:27:07] Starting build process: application 'WorklightTest', all environments
[2013-12-13 13:27:10] Failed importing native project for 'Android phones and tablets' Failed to read project description file from location
D:\Development\worklight_dev\WorklightTestApp\apps\WorklightTest\android\native.project.
[2013-12-13 13:27:10] A core eclipse exception has occurred: Failed to
read project description file from location
D:\Development\worklight_dev\WorklightTestApp\apps\WorklightTest\android\native.project.
Actually, I did it with worklight 6.0...
I had the exact same problem and on my Windows 7 Machine it was also a Java Install / Version problems as it seems.
I am an IBMer, so I had the IBM Java JRE and SDKs for version 7 installed. Also the Oracle JRE and JDK. Also both for 32bit and 64bit. The command line always referred to the IBM JDK.
Once I removed all the IBM JREs and JDKs and left only the two, Oracle JDK 7-21 in 32bit and 64bit, on my machine, the creation of the Android project was successful.
I had the same issue and got it resolved (under Ubuntu) by updating Java alternative to the same Java SDK (openjdk-7) that is required by Worklight; using:
sudo update-alternatives --config java
Also checked the SDK alternative points to the same:
sudo update-alternatives --config javac
I have ran across this issue many times haven't yet found a solid resolution. In my latest experience today, this combination of things worked for me consistently for 3 different occurrences on Windows 7
delete native folder in android environment
set -vm flag in eclipse.ini to use Oracle JRE
start eclipse with -clean flag
From: IBM Worklight 6.0 - Build issues
Try to:
Delete the native folder and build the project again
Create a new workspace for Eclipse
Run Eclipse with the -clean flag
I have installed a fresh copy (not upgraded) of Worklight 6.1, created new project+app+environment and the build passed successfully.
I suggest to try the above suggestions as they are ordered.

Android Studio Can't Find JDK Mac

I'm just trying out Android Studio. I imported a project from Eclipse, but every time I try
to run it I get this error:
"Cannot run program
"Library/JavaVirtualMachines?jdk1.7.0_10.jdk/Contents/Home/bin/java"
(in directory
"/Users/myname/Library/Caches/AndroidStudioPreview/compile-server"):
error=2, No such file or directory.
I just installed the latest JDK using the JDK 7 Update 21 dmg. Is it installing the jdk in a place where Android Studio won't find it? The dmg didn't have any options for where to install the jdk other than "Install for all users of this computer," which I did.
When I was using Eclipse I had no problems with running my programs.
Furthermore, the Project Structure option was no longer available after I updated earlier today. Instead I just get the message, We will provide a UI to configure project settings later. Until then, please manually edit your build.gradle file(s.)"
I'm not sure what to do to get my programs running again. Do I need to locate the jdk files and move them? Could I tell Android Studio where the files are actually installed?
The solution was easier than I thought: just go to File/Other Settings/Default Project Structure and click SDKs. There the JDK home path can be changed.
Yes changing the JDK path will work. If that doesn't fix your problem, as it didn't for me at first, uninstall your JDK and redownload and install it. Once I reinstalled mine, it worked flawlessly.

New Android SDK Tools causing havok

I've just updated to the new sdk platform version 11 and tools version 10 and they now generate invalid .apk files. Eclipse doesn't complain until I try and install it, then says
Android Launch!
adb is running normally.
Could not find someapp.apk!
This is because the apk is messed up. Using adb install someapp.apk we see
EOCD not found, not Zip
Note, I'm building against 2 referenced libraries.
Please help me resolve this issue.
I've spent the day looking for an answer, and much to my chagrin was unable to find answer. I did narrow the culprit down to either Eclipse 3.4 or Ant though.
My reasoning: Ant 1.8 is needed to use the command line tools, I updated and could build via command line. Eclipse has plugins for 1.7 though, so builds still failed.
To solve this, I updated to Eclipse 3.6 and everything works now. Hopefully this helps someones else.

Categories

Resources