FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'project'. > Could not resolve all dependencies for configuration ':_debugApkCopy'. > Could not find com.android.support:support-v4:27.1.0. Required by: project : > Could not find com.android.support:support-v4:27.1.0. Required by: project : > Could not find com.android.support:support-v4:27.1.0. Required by: project : > com.android.support:support-v13:23.4.0 > Could not find com.android.support:support-v4:27.1.0. Required by: project : > com.google.android.gms:play-services-gcm:9.8.0 > com.google.android.gms:play-services-basement:9.8.0 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 1.559 secs Command finished with error code 1: /project/gradlew cdvBuildDebug,-b,/project/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true Error: /project/gradlew: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.
I have the same problem.
I'm also facing the same problem. Following is the git project where I got the code from for Moodle Mobile 3.4.2
I'm trying to develop an app using PhoneGap build https://build.phonegap.com
any help would be appreciated.
Yo tengo el mismo problema. Ya intente de todo y aun nada.
same problem. googling showed some recommendations, but none work.
I still have the issue with the Moodle App 3.5 as it only able to show the Splash screen page only.
On the browser, it works well but not after building app-debug.apk file.
Do you guys need the steps to build the app in that way and, not in phogape way.
I've succeeded using the latest version v 3.5.0 branch from the above mentioned repo....
I think that you should try doing it from any macbook. It worked for me with no problems.
I followed the steps given in this link for the development environment for app
I have tried building the app using Cordova & Ionic and also using ionic alone.
When using both Cordova and Ionic, I use to run the following command to build the android apk file is
sudo ionic cordova build andriod
and building using only Cordova I use to run the following command
sudo ionic build andriod
Any help would be appreciated.
There is something I'm missing as it runs very well in the browser while running it with the command sudo ionic serve -b
Note :- I'm able to build the app and it gets installed in the mobile very smoothly but when launching it I'm only able to see the white screen for few seconds and then splash screen which keeps on loading.
If it works in web but not in device then it's probably related to cordova plugins, make sure they're all installed.
Your comments are much appreciated.
I have tried building the Moodle App again with the latest code https://github.com/moodlehq/moodlemobile2/tree/v3.5.0
But I'm still getting the same issue, I have been trying this for a long time even before the official release on June 26, 2018.
I have uploaded a few images below.
This error I'm getting in the console when running in the browser but everything works as expected on the browser
I'm also able to build the .apk file but it stuck on splash screen only and keep on loading.
You can check out those image in the attachment as well.
I'm using 64bit - ubuntu16.04 LTS and other details are as followes
Creating Cordova project for the Android platform:
Path: platforms/android| Package: com.moodle.moodlemobile |Name: Moodle | Activity: MainActivity | Android target: android-26 | Subproject Path: CordovaLib |Subproject Path: app
Android project created with firstname.lastname@example.org
ionic version : 3.20.0 and Cordova version : 8.0.0
First of all thank you so much for the link you have just shared to help me out.
Following is the screenshot of Remote Debugging Android as you suggested, there are some
ERROR Error: Uncaught (in promise): plugin_not_installed
CoreUpdateManagerProvider: Error migrating table config to core_config: plugin_not_installed
Please do let me know if you have come across this error till the time I find out.
this error means that you lack some Cordova plugins. This means you didn't run "npm run setup" or "cordova prepare", or something went wrong and the plugins weren't installed.
I suggest you to remove all platforms and plugins and run "cordova prepare" again. Please notice that doing so you will lose all your modifications in platforms/android (if you did any), so maybe you prefer adding all the plugins manually. You can see the list of plugins in the config.xml file:
I have same issue. Do you have any idea?
I followed the same steps but I used phonegap and I succeeded!
Be careful while u download the git to ur local computer give this command
git checkout v3.5.0
Which steps are you referring to?
I am also using phongap but errors still show up.
Hello All who are facing problem with phonegap build of moodle.
We are getting same problem as Yogeshwar and finally we found solution :
It's Simple solution, Just replace
<preference name="phonegap-version" value="cli-6.5.0" />
<preference name="phonegap-version" value="cli-7.1.0" />
It will works..!!!