关于ionic遇到的一些问题

一:ionic build android's Error : copyFileSync: could not write to dest file

解决方案:

in the directory: platforms/android/cordova I updated in the file Api.js the locations object, because the
path are not correct.

current locations object look like this in my Api.js:

   

this.locations = {
    root: self.root,
    www: path.join(self.root, 'assets/www'),
    res: path.join(self.root, 'res'),
    platformWww: path.join(self.root, 'platform_www'),
    configXml: path.join(self.root, 'app/src/main/res/xml/config.xml'),
    defaultConfigXml: path.join(self.root, 'cordova/defaults.xml'),
    strings: path.join(self.root, 'app/src/main/res/values/strings.xml'),
    manifest: path.join(self.root, 'app/src/main/AndroidManifest.xml'),
    build: path.join(self.root, 'build'),
    javaSrc: path.join(self.root, 'app/src/main/java/'),
    // NOTE: Due to platformApi spec we need to return relative paths here
    cordovaJs: 'bin/templates/project/assets/www/cordova.js',
    cordovaJsSrc: 'cordova-js-src'
};

二:由fb_app_id  fb_app_name not found引起的 app:processDebugResources 

解决方案:

在项目下的platforms\android\app\src\main\res\values  -> strings.xml
添加
    <string name="fb_app_id">2037***********</string>
    <string name="fb_app_name">Mooc ****</string>

三:app:compileDebugJavaWithJavac

解决方案:

在项目下的platforms\android\app\src\main\aidl\com\android\vending\billing\

and put the IInAppBillingService.aidl file in there.

发布了25 篇原创文章 · 获赞 0 · 访问量 1505

猜你喜欢

转载自blog.csdn.net/u014681799/article/details/81462825