我正在尝试创建phonegap项目
phonegap create AppName
有了这个结果
Creating a new cordova project.
Downloading hello-world-template library for www...
Undefined
因为"下载"字是有...我假设命令需要在线执行.. 所以再试一次这个结果
Creating a new cordova project.
Downloading hello-world-template library for www...
Download complete
所以问题..有没有办法离线执行命令..?
答案 0 :(得分:0)
您可以从此处https://github.com/apache/cordova-app-hello-world
获取相同的hello world应用程序,跳过 while (cursor.moveToNext()) {
Log.e(TAG, "Track =" + cursor.getString(3));
Track track = new Track();
track.setLocalId(cursor.getInt(0));
track.setArtist(cursor.getString(1));
track.setAlbum(cursor.getString(2));
track.setTitle(cursor.getString(3));
track.setPath(cursor.getString(4));
track.setFileName(cursor.getString(5));
track.setLength(cursor.getLong(6));
track.setYear(cursor.getInt(7));
track.setAlbumId(cursor.getLong(8));
track.setGenre(context.getString(R.string.unknown_genre));
tracks.add(track);
}
cursor.close();
步骤
然后进入项目目录并执行构建命令(例如create
),当构建成功时,您可以运行该应用程序(例如使用phonegap local build android
)。