首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cordova android构建错误-“检测到Android Studio项目”

Cordova android构建错误-“检测到Android Studio项目”
EN

Stack Overflow用户
提问于 2018-01-18 02:28:27
回答 1查看 1.9K关注 0票数 1

我已经创建了一个cordova项目,并且我正在尝试运行cordova build android并获得输出'Android Studio project detected‘,但没有进一步的成功。

here描述的类似问题没有适用于我的解决方案。

下面是cordova build android --verbose的详细输出

No scripts found for hook "before_run". No scripts found for hook "before_prepare". Checking config.xml and package.json for saved platforms that haven't been added to the project Config.xml and package.json platforms are the same. No pkg.json modification. Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms. PlatformApi successfully found for platform android Android Studio project detected Checking config.xml for saved plugins that haven't been added to the project Checking for any plugins added to the project that have not been installed in android platform No differences found between plugins added to project and installed in android platform. Continuing... Generating platform-specific config.xml from defaults for android at /home/sb/App/platforms/android/app/src/main/res/xml/config.xml Merging project's config.xml into platform-specific android config.xml Merging and updating files from [www, platforms/android/platform_www] to platforms/android/app/src/main/assets/www Wrote out android application name "App" to /home/sb/App/platforms/android/app/src/main/res/values/strings.xml android-versionCode not found in config.xml. Generating a code based on version in config.xml (1.0.0): 10000 Wrote out Android package name "com.example.myapp" to /home/sb/App/platforms/android/app/src/main/java/com/example/myapp/MainActivity.java This app does not have launcher icons defined This app does not have splash screens defined This app does not have additional resource files defined Prepared android project successfully No scripts found for hook "after_prepare".

EN

回答 1

Stack Overflow用户

发布于 2018-04-30 15:08:59

尝试运行cordova requirements,如果缺少某些东西,它会显示给您。纠正问题(可能缺少JAVA_HOME变量),您将能够完成构建。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48307714

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档