I tried importing Anthony's Lightning Browsers source code into Android Studio.
https://github.com/anthonycr/Lightning-Browser
I did:
git submodule update --init --recursive
..as instructed too.
However, I'm getting this error
Gradle 'Lightning-Browser-dev' project refresh failed
Error:Configuration with name 'default' not found.
Please refer to the source code on Github, I don't know what code to give here to make my problem easier to understand.
Thanks in advance! :)
Are you sure you have successfully run git submodule update --init --recursive?
If this command executes successfully then the external folder inside Lightning-Browserproject should not be empty. I got the same error message Configuration with name 'default' not found. before running the above command and my external folder was empty. After running it (it takes some time since it downloads stuff) the external folder had the netcipher project required.
So I suggest make a new clone of the github project:
git clone https://github.com/anthonycr/Lightning-Browser.git
and then issue the git submodule command:
git submodule update --init --recursive
and check if the external folder is populated like in the pic below
Related
Im using Android Studio with bitbucket. I changed the name of a repository and now when I try to push, I get the message Fatal error, repository not found.
How do I update the new repository name on my Android Studio Project to push correctly?
Thanks in advance.
See my example:
Go to terminal,
cd projectFolder
git remote -v (it will show previous git url)
git remote set-url origin https://username#bitbucket.org/username/newName.git
git remote -v (double check, it will show new git url)
git push (do whatever you want.)
See my example:
I simple changed the repository name accessing the config file inside the .git folder of my project. That solved the problem.
Update your git remote, changing the repo url: https://help.github.com/articles/renaming-a-remote/
I want add a patch for android source code.
Have downloaded the code after the instruction from:
https://source.android.com/source/downloading.html
After that i follow the steps in:
http://source.android.com/source/submit-patches.html
When i should start a new repo branch:
repo start NAME .
I get error:
error: project . not found
Can someone tell me why?
This error will occur if you try to run the command repo start NAME . inside the WORKING_DIRECTORY folder. This is because the WORKING_DIRECTORY folder is not a git repository. You need to go to some inner folder in which there is a git repository you need. Inside the folder, that is the git repository, or in one of its parent folders, there must be a .git folder. For example, go to this folder: /frameworks/base/core/java/android/widget. Inside this folder, run the command repo start NAME .
I want to use Indic-Keyboard github project for build an application. So when I clone it to my repository and try to build I get build failed with an exception that
Cannot evaluate module ime : Configuration with name 'default' not found.
I create my own release key for key store in android studio 1.1.0 according to developer.android.com's suggestion for Signing Your Own App
and store it in E:\GitHubCloneProject\AddSubmoduleAndroidStudio\CloneProject\java\keystores\android.jks.
and also set ANDROID_HOME=E:\Android Sdk in my system environment variable by using the
following suggestion from stackoverflow.
I follow the procedure for initialize,update and add submodule according to github project "austimkelly/my-android-project/How-to-Use".
When I try to import in my android studio I get the error
Can not invoke method readLine() on null Object.
I'm using gradle 2.2.1.
checkout your indic-keyboard/ime folder, if it is empty follow these steps-
after using this command "git clone --recursive git#github.com:smc/Indic-Keyboard.git" use cd indic-keyboard to navigate to project directory
use "git checkout -f HEAD" to check the status
use "git submodule update --init --recursive" or "git submodule foreach --recursive git checkout master" as suggested in this stackoverflow question.
then go to build.gradle in your clonned directory/indic-keyboard/java and remove signingConfigs and buildTypes part from it, after saving import java folder to android studio and hopefully everything will work
#CSE09 are you able to use it in your app, if so please guide me how you did that, as I am struggling to convert it into a library project in android studio
I was working on an Android project in Eclipse and I then decided to Git it. Being new, instead of creating a local repository in the parent of the project, I ended up creating it in C:\Users\Little\.git\LocalRepository.
Now, I am facing a lot of problems in my Android project; specifically with adding user libraries to my build path.
Based on this answer here:
Eclipse will not recognize project as library (ActionBarSherlock/ViewPagerIndicator)
I have imported all the user libraries to my workspace. However, my project itself is in a different folder and hence I am stuck. There is also a comment on the answer which says:
Thanks. In my case, I forgot that my project was imported from git and
was physically located in another folder than all other projects.
I believe I have to do the same. How do I get the project from local repo to my workspace?
May be below command help someone to get rid of same issue with command line :
Step 1 : To make sure that ur git does not contains any local changes do :
git status
make sure here there is files where u have changes something and is in red color
Step 2: To check when and how commited last do :
git log
Step 3 :
rm -rf .git
Make sure u just take backup.
Step 4 : do git clone to dir u need :
git clone ssh://firstname.lastname#xx.x.xx.xx:xxxxx/project_name
I have followed the instructions here to get the cynogenmod source on my system.
i was able to do the build successfully. I didn't do any local source changes. Now when i try to get the latest source using repo sync command, I am getting the following errors
error: Your local changes to the following files would be overwritten by checkout:
Android.mk
extendedcommands.c
flashutils/Android.mk
flashutils/flashutils.c
flashutils/flashutils.h
mounts.c
mounts.h
nandroid.c
roots.c
Please, commit your changes or stash them before you can switch branches.
Aborting
error: Your local changes to the following files would be overwritten by checkout:
encore.mk
init.encore.rc
Please, commit your changes or stash them before you can switch branches.
Aborting
<few more errors like this.........>
error: bootable/recovery/: CyanogenMod/android_bootable_recovery checkout 50822991460cbee65757e9de12b29e39238d6386
error: device/bn/encore/: CyanogenMod/android_device_bn_encore checkout f6586ab41f0e3f5acfa16b43f9b17008e9bb0524
I have tried repo forall -c git reset --hard HEAD without success.
Any suggestions on how i can resolve these errors?
Apparently I was facing this issue because I had the repository on an NTFS partition. NTFS was not storing the permissions on the file properly and Git was seeing that as a change.
You can force Git to ignore the permissions on the file while looking for changes by using the following command:
repo forall -c git config core.filemode false
(Not sure if this has any side effect. If there is, please let me know!)