quran / quran_android

a quran reading application for android
http://android.quran.com
GNU General Public License v3.0
2.01k stars 888 forks source link

running problem with Quran application #346

Closed saharstar closed 10 years ago

saharstar commented 10 years ago

Hello I tried to download the code and after while I run that with android studio and pointed to gradle it still did not work. if i want to use the gradle it wants grade home and while i do not give it it starts to download gradle-1.8-all.zip and fails after few minutes with error and if i download it manually and give it the path it does not accept. and if i open project and run it it has errors like this : [main] C:\quran_android-master\app\src\main\res\values-v14\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock'.

below error once i tried to open project instead of importing it

[main] invalid resource directory name: C:\quran_android-master\app\src\main\res/drawable-xxxhdpi

please assist . I really need Quran source for android and as i searched it seems Quran android is the best but i do not know how to run it your fast response is highly appreciated Thanks for your time

ahmedre commented 10 years ago

things to check:

in addition:

saharstar commented 10 years ago

Hello thank you so much for the answer.

actually the version of Android studio is Android studio-AI 130737825 JRE 1.7.0_40 I have no idea if it is above the version you mentioned or not but i get it few mouths ago as the latest version.please advice if it is a wrong version

also i have SDK manager installed and requested items are already installed.

when i point to gradle it askes for 3 path , and i do not know what i should choose for gradle home and once it tries to get from internet after few minutes this appears:

Could not fetch model of type 'IdealProject' using Gradle distributin ' http://services.gradle.org/distributions/gradle-1.8-all.zip'. A problem occirred configuring project 'app'. failed to notify project evulaution listener Could not resolve all dependencies or configuration ':app:_DebugCompile' could not resolve com.android.support:support-v4:18.0.0

please let me know under which path i have to run gradlew tasks

also please let me know how i should run gradlew --refresh-dependencies and gradlew wrapper

On Fri, Nov 8, 2013 at 5:49 PM, ahmedre notifications@github.com wrote:

things to check:

  • are you on android studio 0.3.0+?
  • did you install the "android sdk build-tools" (version 19), android support repository, google repository, and android support library from the sdk manager?

in addition:

  • what is the problem you get when it tries to download gradle and fails?
  • what happens when you run (from the command line) gradlew tasks?
  • try to run gradlew --refresh-dependencies and gradlew wrapper

— Reply to this email directly or view it on GitHubhttps://github.com/ahmedre/quran_android/issues/346#issuecomment-28065363 .

ahmedre commented 10 years ago

salam,

  1. the latest version is today (and some other pretty new versions in the past few weeks)
  2. searching shows that probably, you don't have the packages i mentioned installed - please see http://stackoverflow.com/questions/17476219/could-not-fetch-model-of-type-ideaproject-using-gradle-distribution
  3. run the gradlew commands in the quran android directory - there is a batch file (gradlew.bat) for windows and gradlew shell script for mac/linux that you can run.
saharstar commented 10 years ago

Salam thanks for your time and assistance

I have installed 3 mentioned packages ,at least in the SDK manager it shows installed status

also i have run gradelw.bat and here is the result

C:\Users\Princess\Downloads\Compressed\quran_android-master\quran_android-master gradlew --info Starting Build Starting file lock listener thread. Settings evaluated using settings file 'C:\Users\Princess\Downloads\Compressed\q uran_android-master\quran_android-master\settings.gradle'. Projects loaded. Root project using build file 'C:\Users\Princess\Downloads\Comp ressed\quran_android-master\quran_android-master\build.gradle'. Included projects: [root project 'quran_android-master', project ':app'] Evaluating root project 'quran_android-master' using build file 'C:\Users\Prince ss\Downloads\Compressed\quran_android-master\quran_android-master\build.gradle'.

Evaluating project ':app' using build file 'C:\Users\Princess\Downloads\Compress ed\quran_android-master\quran_android-master\app\build.gradle'.

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 5.067 secs

C:\Users\Princess\Downloads\Compressed\quran_android-master\quran_android-master

today i downloaded again from the download part of the site(master.zip) but the same problems are there

Best Regards

On 11/9/13, ahmedre notifications@github.com wrote:

salam,

  1. the latest version is today (and some other pretty new versions in the past few weeks)
  2. searching shows that probably, you don't have the packages i mentioned installed - please see http://stackoverflow.com/questions/17476219/could-not-fetch-model-of-type-ideaproject-using-gradle-distribution
  3. run the gradlew commands in the quran android directory - there is a batch file (gradlew.bat) for windows and gradlew shell script for mac/linux that you can run.

Reply to this email directly or view it on GitHub: https://github.com/ahmedre/quran_android/issues/346#issuecomment-28117172

ahmedre commented 10 years ago

as the error mentions, make a file (in the same directory) called local.properties - it should contain one line - sdk.dir=PATH_TO_YOUR_ANDROID_SDK. you can alternatively add the environment variable called ANDROID_HOME pointing to the sdk directory.

you can see this link (http://stackoverflow.com/questions/17678289/android-studio-gradle-build-error-cant-locate-sdk-and-compile-server) for more details.

saharstar commented 10 years ago

thanks for the replay I will check this and come back to you

On 11/10/13, ahmedre notifications@github.com wrote:

as the error mentions, make a file (in the same directory) called local.properties - it should contain one line - sdk.dir=PATH_TO_YOUR_ANDROID_SDK. you can see this link (http://stackoverflow.com/questions/17678289/android-studio-gradle-build-error-cant-locate-sdk-and-compile-server) for more details.


Reply to this email directly or view it on GitHub: https://github.com/ahmedre/quran_android/issues/346#issuecomment-28138996

saharstar commented 10 years ago

Hi one question : i have installed sdk manager separately and it has the latest updates.is it different from the sdk of android studio?to which one i should point the environment variable?

also i have changed my laptop and run it in my friends laptop, i get below error while compiling

,i have changed the setting related to compiler and check marked the external build as i got below error

11:38:15 AM Deprecated make implementation Old implementation of "Make" feature is enabled for this project. It has been deprecated and will be removed soon. Please enable newer 'external build' feature in Settings | Compiler. 11:38:16 AM Compilation completed with 1 error and 0 warnings in 1 sec

but after that i still get error

11:42:58 AM AssertionError: null 11:42:59 AM Auto make completed with errors 11:43:02 AM AssertionError: null

please assist

On 11/11/13, Sahar khanom s4h4r.sun@gmail.com wrote:

thanks for the replay I will check this and come back to you

On 11/10/13, ahmedre notifications@github.com wrote:

as the error mentions, make a file (in the same directory) called local.properties - it should contain one line - sdk.dir=PATH_TO_YOUR_ANDROID_SDK. you can see this link (http://stackoverflow.com/questions/17678289/android-studio-gradle-build-error-cant-locate-sdk-and-compile-server) for more details.


Reply to this email directly or view it on GitHub: https://github.com/ahmedre/quran_android/issues/346#issuecomment-28138996

ahmedre commented 10 years ago

try compiling from the command line and see if it works.

saharstar commented 10 years ago

how should i do that? i just know with android studio

On 11/11/13, ahmedre notifications@github.com wrote:

try compiling from the command line and see if it works.


Reply to this email directly or view it on GitHub: https://github.com/ahmedre/quran_android/issues/346#issuecomment-28183342

saharstar commented 10 years ago

i made it but i still get error

AssertionError: null

also once i use android studio the problem with ANDROID_HOME appears and no matter to which sdk home it does not understand it ,and some how once it passes that ,or at least does not give error about that i gives AssertionError: null which i have no idea how to handle it ,please assist

saharstar commented 10 years ago

Hi i used my friend's laptop to continue the task ,now it compile without problem ,make and compile is done but once i want to run first i see image 0 then i press to edit the configuration ,i go to image 1 but i do not know why run is disabled. and how i can see program running in emulator Please assist

Thanks

On 11/12/13, Sahar khanom s4h4r.sun@gmail.com wrote:

i made it but i still get error

AssertionError: null

also once i use android studio the problem with ANDROID_HOME appears and no matter to which sdk home it does not understand it ,and some how once it passes that ,or at least does not give error about that i gives AssertionError: null which i have no idea how to handle it ,please assist

ahmedre commented 10 years ago

try doing debug or exiting the ide and going back or something... i am not sure what the problem is here - if it compiles, you can always take the apk from the target directory and install it until you fix the ide insha'Allah.

saharstar commented 10 years ago

my bad, i thought it has been compiled becasue i saw no error as the event log was minimized ,i got one error and that is it Error:Sndroid source generator :android manifest.xml not found.

one very newbie question: what is IDE or what does it stand for?

my goal is to use this codes and extend it by adding some part that helps memorizing Quran ,do you know any other applications that can do so ? i loved Quran android and i wish to build some app using this codes for simplifying memorizing Quran.

On 11/14/13, ahmedre notifications@github.com wrote:

try doing debug or exiting the ide and going back or something... i am not sure what the problem is here - if it compiles, you can always take the apk from the target directory and install it until you fix the ide insha'Allah.


Reply to this email directly or view it on GitHub: https://github.com/ahmedre/quran_android/issues/346#issuecomment-28458893

ahmedre commented 10 years ago

ide is the application you're using (intellij, eclipse, android studio, etc). integrated development environment. i am not sure why you are getting this error - i would try building at command line using gradlew assembleDebug command. we already have some features for this now and may add more in the future.

saharstar commented 10 years ago

Thanks for explanation and sorry for few days delay . Still it does not solve the problem because the same error is appearing

[3] AndroidManifest.xml file not found. Please, check Android facet settings.

I really donot know where i should introduce AndroidManifest.xml file so it can reach that.

On 11/16/13, ahmedre notifications@github.com wrote:

ide is the application you're using (intellij, eclipse, android studio, etc). integrated development environment. i am not sure why you are getting this error - i would try building at command line using gradlew assembleDebug command. we already have some features for this now and may add more in the future.


Reply to this email directly or view it on GitHub: https://github.com/ahmedre/quran_android/issues/346#issuecomment-28636238

ahmedre commented 10 years ago

AndroidManifest.xml is already included with the github project. i am not really sure why. i would try installing the latest Android Studio and choosing "import project," then giving it the path to the build.gradle file and trying to compile.

if that doesn't work, i'd try on the command line to run gradlew assembleDebug and see what happens.

ahmedre commented 10 years ago

things should be easier to build now that we integrated sdk manager. you should just be able to clone the repo, install Android Tools, set your $ANDROID_HOME, and do ./gradlew assembleDebug to build.