You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apk not have asssets folder Or When running, have error: "TypeError: cc.Class is undefined" (cocos2dx v3.17 js project, run with gradle version 4.6 and android plugin version 3.2.1)
#19301
Closed
zerominh opened this issue
Jan 15, 2019
· 2 comments
· Fixed by #19679
Reason: in gradle 4.6, merge assets is changed to folder merged_assets, not in assets folder
I fixed it with modify build.gradle file:
copy {
println("copy " + Paths.get("${buildDir}", "/../../../../../res") + " ===> " + Paths.get("${buildDir}",
"/intermediates/merged_assets/${variant.dirName}/merge${variant.dirName}Assets/out/res"))
// from "${buildDir}/../../../../../res"
// into "${buildDir}/intermediates/assets/${variant.dirName}/res"
from(Paths.get("${buildDir}", "/../../../../../res"))
into(Paths.get("${buildDir}", "/intermediates/merged_assets/${variant.dirName}/merge${variant.dirName}Assets/out/res"))
}
Another "copy {}" lines and "delete" line is modified similarly
The text was updated successfully, but these errors were encountered:
Reason: in gradle 4.6, merge assets is changed to folder merged_assets, not in assets folder
I fixed it with modify build.gradle file:
copy {
println("copy " + Paths.get("${buildDir}", "/../../../../../res") + " ===> " + Paths.get("${buildDir}",
"/intermediates/merged_assets/${variant.dirName}/merge${variant.dirName}Assets/out/res"))
// from "${buildDir}/../../../../../res"
// into "${buildDir}/intermediates/assets/${variant.dirName}/res"
from(Paths.get("${buildDir}", "/../../../../../res"))
into(Paths.get("${buildDir}", "/intermediates/merged_assets/${variant.dirName}/merge${variant.dirName}Assets/out/res"))
}
Another "copy {}" lines and "delete" line is modified similarly
The text was updated successfully, but these errors were encountered: