交叉步行检查android错误

时间:2016-12-04 13:59:36

标签: android ant crosswalk

我是一个新人用于散步。我尝试在Ubuntu中设置android,我使用Here进行了设置。但是我有像bellow.please这样的问题解决了这个问题吗?

var timeSlotModel = require('../models/time_slot').model; var Booking = require('./booking'); Booking.getBookings({}, function(err, bookings) { if (err) { console.error(err); } else { timeSlotModel.find({start: bookings.start}, function(err, slots) { if (err) { console.error(err); } else { return next(null, slots); } } }

这些是显示的输出
  MongooseError: Cast to number failed for value "undefined" at path "start"
  >$ crosswalk-app check android
  + Checking host setup for target android
 + Checking for android... /home/user/android/Android/Sdk/tools/android
  + Checking for ant... /usr/bin/ant
  + Checking for java... /home/user/install/jdk1.8.0_101/bin/java
  + Checking for lzma... /usr/bin/lzma
  + Checking for ANDROID_HOME... /home/user/android/Android/Sdk/
  + Testing dummy project in /tmp/PZHyT7
+ Creating com.example.foo [done]
+ Building com.example.foo [aapt...] ** WARNING: BUILD FAILED
/home/user/android/Android/Sdk/tools/ant/build.xml:649: The following error occurred while executing this line:
/home/user/android/Android/Sdk/tools/ant/build.xml:694: Execute failed: java.io.IOException: Cannot run program
"/home/user/android/Android/Sdk/build-tools/25.0.1/aapt": error=13,
Permission denied

..................
..................
... 46 more
Total time: 6 seconds
+ Building com.example.foo [done]

1 个答案:

答案 0 :(得分:1)

You got a permissions error. That means that your user account doesn't have access to something in your build path. i'd say start with: bundle install and go up the path from there. you should eventually find that user/group permissions somewhere in there don't belong to you. once you find the culprit use bundle install bundle update bundle exec bundle install bundle update json gem install json gem install json -v '1.8.6'

however, you also got told that there is a log file at `componentDidMount(){ var owner; for(var i = 0; i < this.props.categoryId.length; i++) { if (this.props.categoryId[i].num === this.props.content.categories[0]) { owner = this.props.categoryId[i].category; this.setState({ catname: owner }) break; } } var theContent = this.props.content.content.rendered; var output = $(theContent).find("img").map(function() { return this.src; }).get(); this.setState({ postImages: output }); } click(){ this.updateActive(); this.props.fix(); } render() { if (this.props.className === this.state.catname) { return ( <div > { this.props.className === this.state.catname && <article className={`${this.state.catname}`} > {this.state.postImages.map((image, i) => <ImageContain key={image} image={image} fix={this.props.fix} /> )} </article> } </div> ); } else { return null; } }` , try ls -la /home/user/android/Android/Sdk/build-tools/25.0.1/aapt /tmp/PZHyT7 and post the results.