Getting error after implementing all jar #4
Comments
What's your Gradle version? I'm using Gradle 1.11 and I don't have this problem compiling :S How do you reproduce it? |
Hello? |
Hello |
@patelajay745 can you tell me how reproduce this error? I asked you about the gradle version you were using :) |
i dont know about gradle...can you help me? On 13 August 2014 22:27, Pedro Vicente Gómez Sánchez <
|
What are you doing to get that error? |
i m simply run project in emulator in adt. |
Build the application using Gradle. Clone this repository, follow README.md instructions to install YouTube player dependency and execute ./gradlew installDebug |
would you please tell me how to Build the application using Gradle ? |
./gradlew build |
steps please am stuck in this sample for a week ! this error is always facing me |
If you execute If you execute |
ok Thanks alot i will try it now :) Thanksssssssssssssssssss |
is it a must to run it on android studio ? or may run in Eclipse |
You should not try to compile this project using eclipse because the build tool used in this project is Gradle and eclipse doesn't support it as should. To build this project you can import it using android studio or intelli j and press the play button or execute the command I told you in the previous comment. |
Thanks a lot appreciated :) |
I execute ./gradlew build from CMD as you said and create local.properties file in the project root with my sdk.dir but it can't find my sdk .
|
And I added Android_Home enviromental vriable as well but it stil can't find my sdk |
Why you need use Eclipse? |
simply I need to use your draggable panel for videos in myapp which is created and has many library projects in eclipse |
believe it or not i build draggable panel in eclipse and create new project and add it as lib project it Works ! now i am going to investigate more in your sample code :) |
08-05 12:16:24.701: E/AndroidRuntime(19177): FATAL EXCEPTION: main
08-05 12:16:24.701: E/AndroidRuntime(19177): java.lang.RuntimeException: Unable to create application com.github.pedrovgs.sample.DraggablePanelApplication: java.lang.IllegalStateException: Module adapter for class com.github.pedrovgs.sample.di.MainModule could not be loaded. Please ensure that code generation was run for this module.
08-05 12:16:24.701: E/AndroidRuntime(19177): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4593)
08-05 12:16:24.701: E/AndroidRuntime(19177): at android.app.ActivityThread.access$1400(ActivityThread.java:157)
08-05 12:16:24.701: E/AndroidRuntime(19177): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
08-05 12:16:24.701: E/AndroidRuntime(19177): at android.os.Handler.dispatchMessage(Handler.java:99)
08-05 12:16:24.701: E/AndroidRuntime(19177): at android.os.Looper.loop(Looper.java:176)
08-05 12:16:24.701: E/AndroidRuntime(19177): at android.app.ActivityThread.main(ActivityThread.java:5317)
08-05 12:16:24.701: E/AndroidRuntime(19177): at java.lang.reflect.Method.invokeNative(Native Method)
08-05 12:16:24.701: E/AndroidRuntime(19177): at java.lang.reflect.Method.invoke(Method.java:511)
08-05 12:16:24.701: E/AndroidRuntime(19177): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
08-05 12:16:24.701: E/AndroidRuntime(19177): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
08-05 12:16:24.701: E/AndroidRuntime(19177): at dalvik.system.NativeStart.main(Native Method)
08-05 12:16:24.701: E/AndroidRuntime(19177): Caused by: java.lang.IllegalStateException: Module adapter for class com.github.pedrovgs.sample.di.MainModule could not be loaded. Please ensure that code generation was run for this module.
08-05 12:16:24.701: E/AndroidRuntime(19177): at dagger.internal.FailoverLoader$1.create(FailoverLoader.java:45)
08-05 12:16:24.701: E/AndroidRuntime(19177): at dagger.internal.FailoverLoader$1.create(FailoverLoader.java:40)
08-05 12:16:24.701: E/AndroidRuntime(19177): at dagger.internal.Memoizer.get(Memoizer.java:56)
08-05 12:16:24.701: E/AndroidRuntime(19177): at dagger.internal.FailoverLoader.getModuleAdapter(FailoverLoader.java:57)
08-05 12:16:24.701: E/AndroidRuntime(19177): at dagger.internal.Modules.loadModules(Modules.java:43)
08-05 12:16:24.701: E/AndroidRuntime(19177): at dagger.ObjectGraph$DaggerObjectGraph.makeGraph(ObjectGraph.java:174)
08-05 12:16:24.701: E/AndroidRuntime(19177): at dagger.ObjectGraph$DaggerObjectGraph.access$000(ObjectGraph.java:138)
08-05 12:16:24.701: E/AndroidRuntime(19177): at dagger.ObjectGraph.create(ObjectGraph.java:129)
08-05 12:16:24.701: E/AndroidRuntime(19177): at com.github.pedrovgs.sample.DraggablePanelApplication.onCreate(DraggablePanelApplication.java:39)
08-05 12:16:24.701: E/AndroidRuntime(19177): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017)
08-05 12:16:24.701: E/AndroidRuntime(19177): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4590)
08-05 12:16:24.701: E/AndroidRuntime(19177): ... 10 more
The text was updated successfully, but these errors were encountered: