infinitered / bluepotion

Like RedPotion, but for Android
MIT License
74 stars 18 forks source link

Starting a new app fails. #104

Open bigtunacan opened 8 years ago

bigtunacan commented 8 years ago

Once I get through setting up a project and try to run in on my Geny emu the default app crashes on startup with the following output. It looks like there is some Java dependency needed?

--------- beginning of main
--------- beginning of system
E/com/your_company/myapp( 1783): Exception raised: NameError: uninitialized constant `Com'
E/com/your_company/myapp( 1783): Uncaught exception when initializing `request.rb.x86.o' scope -- aborting
--------- beginning of crash
E/AndroidRuntime( 1783): FATAL EXCEPTION: main
E/AndroidRuntime( 1783): Process: com.your_company.myapp, PID: 1783
E/AndroidRuntime( 1783): java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/com.your_company.myapp-1/lib/x86/libpayload.so"
GantMan commented 8 years ago

did you gradle install?

bigtunacan commented 8 years ago

@GantMan do you mean this step? rake gradle:install

I ran that inside the project directory prior to rake newclear at which point I'm getting the error output above.

QuintinAdam commented 8 years ago

A few other things I had issues with when setting this up were hyphens in the project names mostly app.name and app.package so get rid of them.

Also this line gives me the ArgumentError: wrong number of arguments (2 for 1) when running rake gradel:install

    dependency "com.mcxiaoke.volley", :artifact => "library", :version => "1.0.10"

To fix this I had to change it to

   dependency "com.mcxiaoke.volley:library:1.0.10"

After that running the gradel install and rake newclear worked.