Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error buildind the app #144

Closed
maxlinux2000 opened this issue Jan 12, 2016 · 20 comments
Closed

Error buildind the app #144

maxlinux2000 opened this issue Jan 12, 2016 · 20 comments

Comments

@maxlinux2000
Copy link

Hi all,

today I tried to build the app in my ubuntu 14.04 64bit but with errors:

steps:

  1. git clone https://github.com/shprink/wordpress-hybrid-client.git
  2. cd wordpress-hybrid-client
  3. npm install
  4. npm run installWPHC
  5. npm run devserver

up this point, all works fine, and I can see the default julien's blog

now when I try to build for android... first error

  1. ionic state restore

You can see the log here
http://pastebin.com/XUCvhmgh

...so I tried to uninstall the cordova-plugin-google-analytics an reinstall by hand all plugins presents in the previous version. Here the list

max@U9200:/XDK/WPHC/wordpress-hybrid-client$ cordova plugin list
com.ionic.keyboard 1.0.4 "Keyboard"
com.telerik.plugins.nativepagetransitions 0.5.7 "Native Page Transitions"
cordova-plugin-console 1.0.2 "Console"
cordova-plugin-crosswalk-webview 1.4.0 "Crosswalk WebView Engine"
cordova-plugin-device 1.1.0 "Device"
cordova-plugin-dialogs 1.2.0 "Notification"
cordova-plugin-file 3.0.0 "File"
cordova-plugin-file-transfer 1.4.0 "File Transfer"
cordova-plugin-globalization 1.0.2 "Globalization"
cordova-plugin-google-analytics 0.8.1 "Google Universal Analytics Plugin"
cordova-plugin-googleplayservices 19.0.3 "Google Play Services for Android"
cordova-plugin-inappbrowser 1.1.1 "InAppBrowser"
cordova-plugin-network-information 1.1.0 "Network Information"
cordova-plugin-splashscreen 3.0.0 "Splashscreen"
cordova-plugin-statusbar 2.0.0 "StatusBar"
cordova-plugin-velda-devicefeedback 0.0.2 "DeviceFeedback"
cordova-plugin-whitelist 1.2.0 "Whitelist"
nl.x-services.plugins.socialsharing 4.3.19 "SocialSharing"
nl.x-services.plugins.toast 2.1.1 "Toast"
org.pushandplay.cordova.apprate 1.1.7 "AppRate"
max@U9200:
/XDK/WPHC/wordpress-hybrid-client$

then remove the platforms an reinstall android:

max@U9200:/XDK/WPHC/wordpress-hybrid-client$ cordova platform remove android ios
max@U9200:
/XDK/WPHC/wordpress-hybrid-client$ cordova platform add android

No errors... but....building

http://pastebin.com/fA9XJUx6

for information... here my system

my ionic is the last
max@U9200:~/XDK/WPHC/wordpress-hybrid-client$ ionic -v
1.7.12

my android sdk is updated and (I think) complete for this system

sdk2

sdk

someone has found same errors?

MaX

@shprink
Copy link
Collaborator

shprink commented Jan 12, 2016

Thanks for this details issue!

Can you try changing [email protected] to [email protected]

and ionic state restore again?

@shprink
Copy link
Collaborator

shprink commented Jan 12, 2016

there is a problem with this cordova-plugin-google-analytics plugin and googleplayservices

@maxlinux2000
Copy link
Author

max@U9200:/XDK/WPHC/wordpress-hybrid-client$ cordova plugin remove cordova-plugin-google-analytics
Uninstalling cordova-plugin-google-analytics from android
Removing "cordova-plugin-google-analytics"
max@U9200:
/XDK/WPHC/wordpress-hybrid-client$ cordova plugin add [email protected]
Fetching plugin "[email protected]" via npm
Installing "cordova-plugin-google-analytics" for android
max@U9200:~/XDK/WPHC/wordpress-hybrid-client$ ionic state restore
Attempting to restore your Ionic application from package.json

Restoring Platforms

cordova platform add android
cordova platform add ios

Restore platforms is complete

Restoring Plugins

cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add https://github.com/Telerik-Verified-Plugins/NativePageTransitions#0.5.5
cordova plugin add [email protected]
cordova plugin add [email protected]
Restore plugins is complete

Ionic state restore completed

max@U9200:~/XDK/WPHC/wordpress-hybrid-client$

:-D

ok, no errors!
now I try to build

@maxlinux2000
Copy link
Author

sorry, but there are more errors:

http://pastebin.com/XDm7qKR8

for the moment I won't use google analitic... can I unistall cordova-plugin-googleplayservices and
cordova-plugin-google-analytics?

the app can works without there two plugins?

@shprink
Copy link
Collaborator

shprink commented Jan 12, 2016

Just remove it for now. Will check this issue, thanks

@maxlinux2000
Copy link
Author

where is the list of plugins to install used from "ionic state restore" ?

@shprink
Copy link
Collaborator

shprink commented Jan 12, 2016

at the end of package.json

@shprink shprink added this to the v2.0.0 milestone Jan 12, 2016
@shprink
Copy link
Collaborator

shprink commented Jan 12, 2016

I have updated to the latest google play service and I can reproduce!

@maxlinux2000
Copy link
Author

good!! :)
meanwhile I'm compiling without these two plugins. I tried to "cordova build" but although the building reaches the end without errors, then android5, not let me install the apk on my mobile ... strange.

now I'm using the "npm run build" after setup the keystore in the release.sh

@maxlinux2000
Copy link
Author

I can build usign "npm run build", sign the apk and install in my phone.
but now... "Error: class cordova not found" and then white screen. :(

I will investigate how to downgrade in android studio, the google play service

@shprink
Copy link
Collaborator

shprink commented Jan 12, 2016

how is npm run android doing ?

@maxlinux2000
Copy link
Author

sorry... too late :)
I have just donwgrade the google_play_service to the version 25 and I'm restarting the WPHC environment, in order to see if I can see working WPHC in my phone.

@maxlinux2000
Copy link
Author

houston, we have a problem :(

downgrading the google_play_service to version 25 is not enougth
So I have remove the cordova-plugin-google-analytics from the list.

now I can compile and build without errors... but with
"npm run android" I can read in my phone:

Error Class cordova not found
and then
Application error the connection to the server was unsucessfull.( file://android_asset/www/index.html)

I'm so sad... :(

@shprink
Copy link
Collaborator

shprink commented Jan 12, 2016

There is a conflict with push notif plugin. WOrking on it

@maxlinux2000
Copy link
Author

we are all with you! :D

@shprink
Copy link
Collaborator

shprink commented Jan 12, 2016

Getting there :P

@shprink
Copy link
Collaborator

shprink commented Jan 12, 2016

Why do not you join the chat? https://gitter.im/shprink/wordpress-hybrid-client

@shprink
Copy link
Collaborator

shprink commented Jan 12, 2016

@maxlinux2000 can you please:

Update android dependencies like this:

image

then :

git checkout develop
git pull origin develop
rm -rf plugins/ platforms/ node_modules/
npm install && npm run restore
npm run android (with device plugged in)

If it works (works on my side) I will release beta02 right away.

@maxlinux2000
Copy link
Author

YOU ARE THE CHAMPION!!! YOU ARE THE CHAMPIOOOOON!!!!!

queen

now the build is working in my phone! 💃

@shprink
Copy link
Collaborator

shprink commented Jan 12, 2016

Haha thanks for your help
releasing beta02 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants