these days i tried to build mediaWiki's android platform follow the steps in readMe in https://github.com/wikimedia/apps-android-wikipedia.
But i got problems in android studio 1.0.1:
problem 1: gradle project sync failed .Basic functionality will not work properly;
i have tried advice from here Android Studio suddenly cannot resolve symbols ,but could not figured it out.
problem 2: Error:A problem occurred configuring project ':wikipedia'.
Could not resolve all dependencies for configuration ':wikipedia:_releasesprodDebugCompile'.
Could not resolve org.mediawiki.api:json:1.3.0.
Required by:androidWikipedia:wikipedia:unspecified
Could not GET 'https://tools.wmflabs.org/android-maven-repo/org/mediawiki/api/json/1.3.0/json-1.3.0.pom'. Received status code 503 from server: Service Temporarily Unavailable
problem 2 seems couldn't find org.mediawiki.api:json:1.3.0 from server.does anyone know where i can get that package ?
in addition,i'm novice of mediawiki_mobile , and met some problems i can't deal with , i wonder is there some website for mediawiki_mobile like stackoverflow i can discuss with other peopel ?
I think both problems are related. Please try again. This was a temporary issue (503), and has been fixed by restarting the web server.
If it still doesn't work, you might want to refresh Gradle dependencies:
./gradlew --refresh-dependencies
or remove
~/.gradle/caches/modules-2/files-2.1/org.mediawiki.api/json/1.3.0
You can find the contact info for the mobile teams on https://www.mediawiki.org/wiki/Wikimedia_mobile_engineering#Contact_us.
Join the IRC channel and mailing list to better interact with the mobile team. Those are for both the mobile web and the mobile apps teams.
Related
I need some help finding the Gradle build logs in Android Studio. I keep running into compatibility issues when adding new Android features to my apps. My latest one was adding Room db. My app compiles fine. I add the new dependencies in build.gradle and the app compiles fine again. As soon as I start trying to use Room I try to build my app it fails. I end up spending hours trying to troubleshoot my build.gradle files to find my errors. (This has happened a few times) The Error I got this time is:
org.gradle.api.GradleException: Compilation error. See log for more
details.
I can't find where the log is. I am using Android Studio Chipmunk in Fedora 36. I saw an old posts that showed a buttons and links to the logs. The posts were older and the users were on Windows and Mac-OS. I don't seem to have them in the Linux version. I can't be the only one running into this. This seems like such a novice issue but I have been looking for a while and can't find the answer. I don't know how to effectively troubleshoot this if I can't see the detailed errors. Any help is greatly appreciated.
My build.gradle logs are located in /tmp.
I found them by going to the Help menu then selecting Collect Logs and Diagnostic Data in Android Studio. This then gave me a popup with an option to Show in Files. The file that appears to contain the data is kotlin-daemon.timestamp.log where time stamp is going to by different for you.
Just building my new app and after launching I get this error in my build.gradle file can anyone help?
Could not determine artifacts for com.github.Kunzisoft:Android-SwitchDateTimePicker:1.9: Skipped due to earlier error
I have made sure the app in settings is offline but still get same error.
stopping vpn and invalidate cache and restart solved the problem
Fast answer - connect to any VPN (in my case USA VPN worked)
Explanation:
This depends on Jitpack libraries in your project.
I recently had the same issue when got the new project from a client. The client then told me that the project was building from scratch successfully, and after some research I've found that loading of some Jitpack libraries constantly failed. At first I tried to increase gradle connection timeout, but then I suddenly found that just connecting to USA VPN worked
Hey guys i have been struggling to fix the problem on my Android Studio 3.0 because every time i try to start a new projects its gives me this error while building it
Protocol Family Unavailable and along with this error i also have this:
4:08 PM Cannot start internal HTTP server. Git integration, JavaScript debugger and LiveEdit may operate with errors. Please check your firewall settings and restart Android Studio
I already tried all the possible fixes given in this forum but none worked for me.
How to understand what and why really happens behind Gradle: Build? There is no console or crashes, just endless building. Maybe there is network issue which happens again and again, but how can developer know it?
This is a sample of just new project:
From terminal everything works fine. So the question is not about how to solve particular problem, but more about generic solution when IDE doesn't show anything except "progress".
You can execute ./gradlew build manually in the terminal to see its logs. You can also add --debug or --stacktraceparameter to enable verbose logging.
I have a similar answer to Andre, but with a suggestion of some potential culprits.
If an issue is happening, Android Studio is just a GUI wrapper on the terminal. So just run the commands and see what the hold up or error is.
However, Often times when I see freezing up that takes a long time to fail it is network related items. Such as an internal Maven repo that is not resolving properly. So check your internal Maven repos as well that they exist and you set them up correctly.
You can also turn off the internet and start it up, it will load into offline mode and not attempt to load any internet items and offers popup to move to offline mode in gradle. This will give you a chance to make your corrections until Android Studio improves these issues.
Rather than Choosing Start a New Android Project, Open an Existing Project and then
goto file>>new >>new Project
If You create android project by following these steps , You can see every error of you gradle build in
logcat
Trying to setup the react native on Windows 7 as per instrcutions provided at https://facebook.github.io/react-native/docs/getting-started.html, after installing all the mandatory tools & dependencies, started getting below issue while running react-native run-android command.
Also looked at many options like setting up proxy for gradle etc but nothing seems to be worked till now.
Hope to get some quick help.
Are you sure it is not a temporary connection issue? Can you ping the server and get a response? Can you open the URL to the resource directly in your browser?