Gradle sync failed: Could not read script '/Users/libs/openFrameworksCompiled/project/android/common-functions.gradle' as it does not exist.
chetan-yg opened this issue ยท 16 comments
I am trying to load the project in Android Studio 2.2.2, But this error i am getting. Any solutions?
same problem here? also tried to download common-functions.gradle lib
there is no common-functions.gradle in
https://github.com/openframeworks/openFrameworks/tree/master/libs/openFrameworksCompiled/project/android
@Chetanyg fond any solution?
Could you guys provide apk file or solution to this problem
@stewdio @alexanderchen @trippedout @HalfdanJ
Hi, I am facing the same issue here as well. Could you please help/guide ?
We are working on an update for the project and openFrameworks build.
Good to know !
@pulkitcs The problem in that case was that the "ofroot" path in build.gradle is relative. By default it's 4 levels under the current folder. Depending on where you placed the folder, just edit your ofroot path.
By fixing your build.gradle .
def ofRoot(){ return '../../../../' }
here you must set the relative path of the ofroot folder. It will differ between people etc depending on where you put the project.
Hi guys, found the ofroot path. Couldn't find common-functions.gradle tho in either OSX or Mobile Android Frameworks gits. Is it something custom that you guys built? Thanks.
I have same issue!
Having the same issue. Anyone figure out a solution?
Please try the pr #8 and the version of openframeworks it's pointing at. This should resolve these issues.
@HalfdanJ
Hi,
Can you explain little bit. I have same issue. There's no file called "common-functions.gradle" in "libs/openFrameworksCompiled/project/android"
@lakmalniranga Can you give me the exact path of your gmojiandroid folder ? The "issue" is all about relative paths. It needs to be exactly 3 levels under your ofroot (using the PR files). No more, no less. With the current master branch it must be 4 levels under the ofroot.
example : C:\ofroot\apps\devApps\gmojiAndroid . This works. (Using the mentioned PR files, ofroot and libs;)
(Well, not exactly because I'm on Windows and the relative path is returning anti-slashes at a point (While including add-ons), and it cause an error because \ is the escape character in Java, but that's another story I need to figure out.)
@AmineI That was fixed (i used this https://github.com/HalfdanJ/openFrameworks instead of official repo )
But still got another error. can anyone provide the APK. I'm tried this more than two days :( no luck
Where:
Build file '/home/owlx/Desktop/of/openFrameworks/libs/openFrameworksCompiled/project/android/build.gradle' line: 157
* What went wrong:
A problem occurred evaluating project ':openFrameworksProject'.
> make failed with exit status 2
I fixed it by checking out the gradle-experiment branch with Git, The file exists in this branch, as seen here.