how to push android project to github - java

open("gradle/wrapper/caches/6.1.1/scripts-remapped/ijinit_duzwis2ipqrhqcdf5qgg8bfpx/9fi4s0842i0sksg2m7izv32e4/cp_init3607aee355f62839c5e6f549478ccc87/classes/ijinit_duzwis2ipqrhqcdf5qgg8bfpx$_run_closure1.class"): Filename too long unable to index file
I have this issue with android studio , when I want push my project to github . when i want to add my file to vcs .
git -> add
I want to solve my issue

This might be helpful.
git config core.longpaths true
Basic explanation: This answer suggests not to have such setting applied to the global system (to all projects so avoiding --system or --global tag) configurations. This command only solves the problem by being specific to the current project.

Related

How to get tools/source.properties on Android SDK (in Travis)?

I'm trying to build javaocr on Travis and the com.simpligility.maven.plugins:android-maven-plugin:4.1.1 Maven plugin wants to read tools/source.properties in the Android SDK root. How can I provide this file? I cannot install the complete SDK since it will exceed the space limitation of the Travis CI service, but I'm sure there's a specific component which needs to be installed.
I have no idea about the Android API version or whatever is needed, but I'll figure it out if necessary. My current motivation is to verify the complete project on Travis after I made changes to it.
It's not a travis-ci issue, I reproduced and solved it locally.
Error reading
/home/travis/build/krichter722/javaocr/demos/sampler/android-studio/tools/source.properties
The path is not correct, use TRAVIS_BUILD_DIRenv variable or absolute paths.
As suggested here, move your resources and manifests to the new location.
android-maven-plugin-4.0 uses the new Android Studio folder layout
which is much more Mavenish. Ie Android resources should be is
src\main\res, Android assets in src\main\assets, AndroidManifest.xml
in src\main
Install only the necessary components by name or number but never the full SDK.
./android-sdk-linux/tools/android update sdk -a -u -t tools,platform-tools,build-tools-23.0.3,android-23
I did a phew changes to your pom.xml files based on this response and this manual
You need to replace the plugin with groupId
"com.jayway.maven.plugins.android.generation2" with
"com.simpligility.maven.plugins" due to a compatibility issue.
So the new plugin is:
com.simpligility.maven.plugins
android-maven-plugin 4.1.1
21
true
true
true

Eclipse Plugin auto update installation

I am new to eclipse plugin world and I happened to create on hello world plugin.
I am able to give it to my friends by telling them to drop the exported jar (that I exported from my project) in the dropin folder, which works well. But I now want to upload that jar to a web location (say on github) and want them to install it using eclipse-> install new software-> add -> archive option (I think this is how I should let them install for internal usage) . I tried n number of things without success , a simple approach that I tried was to archive local jar from disk through the eclipse-> install new software-> add -> archive-> local option, but I get error "no software site found at jar:file:/{location to my jar folder}/hello-world_1.0.0.0.2015XXXX.jar!/. Do you wish to edit the location?" message .
Any guidance is appreciated.
My plugin.xml
My jar folder structure: META-INF,icons,lib,plugin.xml,hello
Testing on same eclipse were-in the dropin method works.
To be able to install and update you first need to create a Feature project as well that links to your plug-in. Then at first you should use Export... > Deployable Feature, select your feature and set Generate p2 repository under Options. You can generate to a directory first. This will contain:
folder/
+plugins/
+features/
+p2/
-artifacts.jar
-content.jar
You can use this as a local site to install from, and when you upload it to an online location, as an update site.
Once you are fed up with manual exporting, you will learn about maven, tycho and automatic update site creation and upload ;-)

Creating *.aar library

Hi I'm a new in Android development and using Android studio. I need to create *.aar lib. I created New Android library project (empty for now). How to generate *.aar file from it? Can you explain by steps? Has read a lot of topics but still unsuccessful. Thanks.
Here's what has worked for me.
on the command line go to the root directory of the project
ensure that your JAVA_HOME environment variable points to the version of the java sdk you are going to use. On a Mac via the bash shell that would look something like this:
export JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home'
(click here to find out how to find your Java Home)
To clean type ./gradlew clean
To build the library type ./gradlew aR (This may take a while)
You should now find the .aar file in mymodulename/build/outputs/aar
Thanks to geekgarage for clarification.
Thanks for #pskink, found out, need to build it like: "gradlew assemble" from the root of project.

How to run maven project on google app engine

I follow this tutorial: http://software.danielwatrous.com/wordpress-plugin-licensing-wicket-on-google-app-engine/. I add google app engine library to this project and then I want to check google app engine on. But when I do this eclipse has this problem:
The App Engine SDK '/home/hudi/program/git/tournamenSystem/tournament-system/
tournament-system-web/src/main/webapp/WEB-INF/lib/appengine-api-1.0-sdk-1.7.1.jar'
on the project's build path is not valid (SDK location '/home/hudi/program/git/
tournamenSystem/tournament-system/tournament-system-web/src/main/webapp/WEB-INF/
lib/appengine-api-1.0-sdk-1.7.1.jar' is not a directory)
I dont understand it. Jar isnt directory so why it want to some directory ? When I want use quick fix then I can just use another SDK. I try to use older version 1.6... but still same problem. How I can fix it ? Please help
Possible solution is that, you should add appengine through app engine settings in eclipse and make sure that the sdk added by appengine setting appear before the one mentioned (i.e. /home/hudi/program/git/tournamenSystem/tournament-system/tournament-system-web/src/main/webapp/WEB-INF/lib/appengine-api-1.0-sdk-1.7.1.jar) in your build path. In this way your application would refer the appengine sdk from google plugin and not for the path which is giving error.
I had same issue where I was getting error for the sdk jar included from maven dependency.Hope it will help.
You may want to take a look at the Maven GAE Plugin
This plugin has goals to run, debug, deploy, etc. your GAE application.
On my computer with Ubuntu 12.04 and Eclipse Juno SR1
I just move all maven dependencies to the button of the list of Java build path.
For open Java build path window right click on the project
- preferences
- Java build path
- Order and Export
- select all row with M2_REPO(or some thing else) and press button "Bottom"
- Refresh project.
This need help.
Thank you!

How can I modify the DroidGap.class file from phonegap-1.0.0.jar archive in eclipse?

I am really very new on android development.
I have made 2-3 apps , those running on my android device already.
Last few days I am facing a stupid problem.
The problem is , creating the app fullscreen for every device. I have read phone gaps wiki
and tried with specific way. But I failed everytime.
When I'm trying to open the DroidGap.class from my Android eclipse project explorer , I got a error. that, "DroidGap.class has no source attached". (after build the phonegap.jar)
Please help me....
first you need to add phonegap.jar to your project
you need to add phone gap plugin to your eclipse
Use the AppLaud Eclipse Plugin for PhoneGap Android
Download and unzip the PhoneGap sources from GitHub
In the AppLaud wizard, select "Enter path to installed PhoneGap"
Enter the directory path to the unzipped sources from GitHub
Now you will be able to modify and debug the sources that comprise phonegap.jar
Caveat: I'm the creator of the AppLaud Plugin
fullscreen?
If you want modify DroidGap.class dowload source code from github and rebuild phonegap.
Rebulid instruction here: https://github.com/callback/callback-android/blob/master/README.md

Categories